package com.mvd.app.activitys;

import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.Gravity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.google.gson.Gson;
import com.kongzue.dialog.interfaces.OnMenuItemClickListener;
import com.kongzue.dialog.util.DialogSettings;
import com.kongzue.dialog.util.TextInfo;
import com.kongzue.dialog.v3.BottomMenu;
import com.kongzue.dialog.v3.MessageDialog;
import com.lzy.okgo.OkGo;
import com.lzy.okgo.callback.StringCallback;
import com.lzy.okgo.model.Response;
import com.lzy.okgo.request.base.Request;
import com.mvd.app.R;
import com.mvd.app.ac2020.VideoListActivity;
import com.mvd.app.activity.BaseActivity;
import com.mvd.app.application.BaseApplication;
import com.mvd.app.commons.CommonUtils;
import com.mvd.app.commons.Constants;
import com.mvd.app.commons.PDALogUtils;
import com.mvd.app.commons.SharedPreferencesUtils;
import com.mvd.app.commons.UtilsLog;
import com.mvd.app.model.CarsInforModel;
import com.mvd.app.model.WaiJainDataModel;
import com.mvd.app.model.WaiJianItemModel;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 外检项目----外检修改车辆信息  更新车辆信息
 */

public class WaiJianItemActivity extends BaseActivity {

    //region
    @BindView(R.id.ac_waijian_item_number)
    TextView acWaijianItemNumber;
    @BindView(R.id.ac_waijian_item_SN)
    TextView acWaijianItemSN;
    @BindView(R.id.ac_waijian_item_times)
    TextView acWaijianItemTimes;
    @BindView(R.id.ac_waijian_item_line)
    TextView acWaijianItemLine;
    @BindView(R.id.ac_waijian_item_shifou_quanshi)
    TextView acWaijianItemShifouQuanshi;
    @BindView(R.id.ac_waijian_item_dianzi_kongzhi)
    TextView acWaijianItemDianziKongzhi;
    @BindView(R.id.ac_waijian_item_kongqi_xuanjia)
    TextView acWaijianItemKongqiXuanjia;
    @BindView(R.id.ac_waijian_item_kongqi_xuanjia_zhou)
    EditText acWaijianItemKongqiXuanjiaZhou;
    @BindView(R.id.ac_waijian_item_zhuanxiang_zhou_shuliang)
    EditText acWaijianItemZhuanxiangZhouShuliang;
    @BindView(R.id.ac_waijian_item_waikuo_chang)
    EditText acWaijianItemWaikuoChang;
    @BindView(R.id.ac_waijian_item_waikuo_kuan)
    EditText acWaijianItemWaikuoKuan;
    @BindView(R.id.ac_waijian_item_waikuo_gao)
    EditText acWaijianItemWaikuoGao;
    @BindView(R.id.ac_waijian_item_zhouju)
    EditText acWaijianItemZhouju;
    @BindView(R.id.ac_waijian_item_chexiang_lanban_gaodu)
    EditText acWaijianItemChexiangLanbanGaodu;
    //    @BindView(R.id.ac_waijian_item_danche_zhuanxianglun_luntai_huawen_shendu)
//    EditText acWaijianItemDancheZhuanxianglunLuntaiHuawenShendu;
//    @BindView(R.id.ac_waijian_item_danche_qita_luntai_huawen_shendu)
//    EditText acWaijianItemDancheQitaLuntaiHuawenShendu;
//    @BindView(R.id.ac_waijian_item_guache_luntai_huawen_shendu)
//    EditText acWaijianItemGuacheLuntaiHuawenShendu;
    @BindView(R.id.ac_waijian_item_diyizhou_zuogaodu)
    EditText acWaijianItemDiyizhouZuogaodu;
    @BindView(R.id.ac_waijian_item_diyizhou_yougaodu)
    EditText acWaijianItemDiyizhouYougaodu;
    @BindView(R.id.ac_waijian_item_diyizhou_zuoyou_gaoducha)
    EditText acWaijianItemDiyizhouZuoyouGaoducha;
    @BindView(R.id.ac_waijian_item_zuihouzhou_zuo_gaodu)
    EditText acWaijianItemZuihouzhouZuoGaodu;
    @BindView(R.id.ac_waijian_item_zuihouzhou_you_gaodu)
    EditText acWaijianItemZuihouzhouYouGaodu;
    @BindView(R.id.ac_waijian_item_zuihouzhou_zuoyou_gaoducha)
    EditText acWaijianItemZuihouzhouZuoyouGaoducha;
    @BindView(R.id.ac_waijian_item_desc)
    EditText acWaijianItemDesc;
    @BindView(R.id.ac_waijian_item_details_video)
    Button acWaijianItemDetailsVideo;
    @BindView(R.id.ac_waijian_item_btn_other)
    Button acWaijianItemBtnOther;
    @BindView(R.id.ac_waijian_item_btn_start)
    Button acWaijianItemBtnStart;
    @BindView(R.id.ac_waijian_item_gua_chexiang_lanban_gaodu)
    EditText acWaijianItemGuaChexiangLanbanGaodu;
    @BindView(R.id.ac_waijian_item_gua_zuo_gaoducha)
    EditText acWaijianItemGuaZuoGaoducha;
    @BindView(R.id.ac_waijian_item_you_gaoducha)
    EditText acWaijianItemYouGaoducha;
    @BindView(R.id.ac_waijian_item_gua_gaoducha_gaoducha)
    EditText acWaijianItemGuaGaoduchaGaoducha;

    @BindView(R.id.luntai_huawen_a1)
    EditText luntaiHuawenA1;
    @BindView(R.id.luntai_huawen_a2)
    EditText luntaiHuawenA2;
    @BindView(R.id.luntai_huawen_a3)
    EditText luntaiHuawenA3;
    @BindView(R.id.luntai_huawen_a4)
    EditText luntaiHuawenA4;
    @BindView(R.id.luntai_huawen_ll_a)
    LinearLayout luntaiHuawenLlA;
    @BindView(R.id.luntai_huawen_b1)
    EditText luntaiHuawenB1;
    @BindView(R.id.luntai_huawen_b2)
    EditText luntaiHuawenB2;
    @BindView(R.id.luntai_huawen_b3)
    EditText luntaiHuawenB3;
    @BindView(R.id.luntai_huawen_b4)
    EditText luntaiHuawenB4;
    @BindView(R.id.luntai_huawen_ll_b)
    LinearLayout luntaiHuawenLlB;
    @BindView(R.id.luntai_huawen_c1)
    EditText luntaiHuawenC1;
    @BindView(R.id.luntai_huawen_c2)
    EditText luntaiHuawenC2;
    @BindView(R.id.luntai_huawen_c3)
    EditText luntaiHuawenC3;
    @BindView(R.id.luntai_huawen_c4)
    EditText luntaiHuawenC4;
    @BindView(R.id.luntai_huawen_ll_c)
    LinearLayout luntaiHuawenLlC;
    @BindView(R.id.luntai_huawen_d1)
    EditText luntaiHuawenD1;
    @BindView(R.id.luntai_huawen_d2)
    EditText luntaiHuawenD2;
    @BindView(R.id.luntai_huawen_d3)
    EditText luntaiHuawenD3;
    @BindView(R.id.luntai_huawen_d4)
    EditText luntaiHuawenD4;
    @BindView(R.id.luntai_huawen_ll_d)
    LinearLayout luntaiHuawenLlD;
    @BindView(R.id.luntai_huawen_e1)
    EditText luntaiHuawenE1;
    @BindView(R.id.luntai_huawen_e2)
    EditText luntaiHuawenE2;
    @BindView(R.id.luntai_huawen_e3)
    EditText luntaiHuawenE3;
    @BindView(R.id.luntai_huawen_e4)
    EditText luntaiHuawenE4;
    @BindView(R.id.luntai_huawen_ll_e)
    LinearLayout luntaiHuawenLlE;
    @BindView(R.id.luntai_huawen_f1)
    EditText luntaiHuawenF1;
    @BindView(R.id.luntai_huawen_f2)
    EditText luntaiHuawenF2;
    @BindView(R.id.luntai_huawen_f3)
    EditText luntaiHuawenF3;
    @BindView(R.id.luntai_huawen_f4)
    EditText luntaiHuawenF4;
    @BindView(R.id.luntai_huawen_ll_f)
    LinearLayout luntaiHuawenLlF;
    @BindView(R.id.other_luntai_huawen_a1)
    EditText otherLuntaiHuawenA1;
    @BindView(R.id.other_luntai_huawen_a2)
    EditText otherLuntaiHuawenA2;
    @BindView(R.id.other_luntai_huawen_a3)
    EditText otherLuntaiHuawenA3;
    @BindView(R.id.other_luntai_huawen_a4)
    EditText otherLuntaiHuawenA4;
    @BindView(R.id.other_luntai_huawen_ll_a)
    LinearLayout otherLuntaiHuawenLlA;
    @BindView(R.id.other_luntai_huawen_b1)
    EditText otherLuntaiHuawenB1;
    @BindView(R.id.other_luntai_huawen_b2)
    EditText otherLuntaiHuawenB2;
    @BindView(R.id.other_luntai_huawen_b3)
    EditText otherLuntaiHuawenB3;
    @BindView(R.id.other_luntai_huawen_b4)
    EditText otherLuntaiHuawenB4;
    @BindView(R.id.other_luntai_huawen_ll_b)
    LinearLayout otherLuntaiHuawenLlB;
    @BindView(R.id.other_luntai_huawen_c1)
    EditText otherLuntaiHuawenC1;
    @BindView(R.id.other_luntai_huawen_c2)
    EditText otherLuntaiHuawenC2;
    @BindView(R.id.other_luntai_huawen_c3)
    EditText otherLuntaiHuawenC3;
    @BindView(R.id.other_luntai_huawen_c4)
    EditText otherLuntaiHuawenC4;
    @BindView(R.id.other_luntai_huawen_ll_c)
    LinearLayout otherLuntaiHuawenLlC;
    @BindView(R.id.other_luntai_huawen_d1)
    EditText otherLuntaiHuawenD1;
    @BindView(R.id.other_luntai_huawen_d2)
    EditText otherLuntaiHuawenD2;
    @BindView(R.id.other_luntai_huawen_d3)
    EditText otherLuntaiHuawenD3;
    @BindView(R.id.other_luntai_huawen_d4)
    EditText otherLuntaiHuawenD4;
    @BindView(R.id.other_luntai_huawen_ll_d)
    LinearLayout otherLuntaiHuawenLlD;
    @BindView(R.id.other_luntai_huawen_e1)
    EditText otherLuntaiHuawenE1;
    @BindView(R.id.other_luntai_huawen_e2)
    EditText otherLuntaiHuawenE2;
    @BindView(R.id.other_luntai_huawen_e3)
    EditText otherLuntaiHuawenE3;
    @BindView(R.id.other_luntai_huawen_e4)
    EditText otherLuntaiHuawenE4;
    @BindView(R.id.other_luntai_huawen_ll_e)
    LinearLayout otherLuntaiHuawenLlE;
    @BindView(R.id.other_luntai_huawen_f1)
    EditText otherLuntaiHuawenF1;
    @BindView(R.id.other_luntai_huawen_f2)
    EditText otherLuntaiHuawenF2;
    @BindView(R.id.other_luntai_huawen_f3)
    EditText otherLuntaiHuawenF3;
    @BindView(R.id.other_luntai_huawen_f4)
    EditText otherLuntaiHuawenF4;
    @BindView(R.id.other_luntai_huawen_ll_f)
    LinearLayout otherLuntaiHuawenLlF;
    @BindView(R.id.gua_luntai_huawen_a1)
    EditText guaLuntaiHuawenA1;
    @BindView(R.id.gua_luntai_huawen_a2)
    EditText guaLuntaiHuawenA2;
    @BindView(R.id.gua_luntai_huawen_a3)
    EditText guaLuntaiHuawenA3;
    @BindView(R.id.gua_luntai_huawen_a4)
    EditText guaLuntaiHuawenA4;
    @BindView(R.id.gua_luntai_huawen_ll_a)
    LinearLayout guaLuntaiHuawenLlA;
    @BindView(R.id.gua_luntai_huawen_b1)
    EditText guaLuntaiHuawenB1;
    @BindView(R.id.gua_luntai_huawen_b2)
    EditText guaLuntaiHuawenB2;
    @BindView(R.id.gua_luntai_huawen_b3)
    EditText guaLuntaiHuawenB3;
    @BindView(R.id.gua_luntai_huawen_b4)
    EditText guaLuntaiHuawenB4;
    @BindView(R.id.gua_luntai_huawen_ll_b)
    LinearLayout guaLuntaiHuawenLlB;
    @BindView(R.id.gua_luntai_huawen_c1)
    EditText guaLuntaiHuawenC1;
    @BindView(R.id.gua_luntai_huawen_c2)
    EditText guaLuntaiHuawenC2;
    @BindView(R.id.gua_luntai_huawen_c3)
    EditText guaLuntaiHuawenC3;
    @BindView(R.id.gua_luntai_huawen_c4)
    EditText guaLuntaiHuawenC4;
    @BindView(R.id.gua_luntai_huawen_ll_c)
    LinearLayout guaLuntaiHuawenLlC;
    @BindView(R.id.gua_luntai_huawen_d1)
    EditText guaLuntaiHuawenD1;
    @BindView(R.id.gua_luntai_huawen_d2)
    EditText guaLuntaiHuawenD2;
    @BindView(R.id.gua_luntai_huawen_d3)
    EditText guaLuntaiHuawenD3;
    @BindView(R.id.gua_luntai_huawen_d4)
    EditText guaLuntaiHuawenD4;
    @BindView(R.id.gua_luntai_huawen_ll_d)
    LinearLayout guaLuntaiHuawenLlD;
    @BindView(R.id.gua_luntai_huawen_e1)
    EditText guaLuntaiHuawenE1;
    @BindView(R.id.gua_luntai_huawen_e2)
    EditText guaLuntaiHuawenE2;
    @BindView(R.id.gua_luntai_huawen_e3)
    EditText guaLuntaiHuawenE3;
    @BindView(R.id.gua_luntai_huawen_e4)
    EditText guaLuntaiHuawenE4;
    @BindView(R.id.gua_luntai_huawen_ll_e)
    LinearLayout guaLuntaiHuawenLlE;
    @BindView(R.id.gua_luntai_huawen_f1)
    EditText guaLuntaiHuawenF1;
    @BindView(R.id.gua_luntai_huawen_f2)
    EditText guaLuntaiHuawenF2;
    @BindView(R.id.gua_luntai_huawen_f3)
    EditText guaLuntaiHuawenF3;
    @BindView(R.id.gua_luntai_huawen_f4)
    EditText guaLuntaiHuawenF4;
    @BindView(R.id.gua_luntai_huawen_ll_f)
    LinearLayout guaLuntaiHuawenLlF;
    @BindView(R.id.gua_luntai_huawen_ll_00)
    LinearLayout guaLuntaiHuawenLl00;
    @BindView(R.id.ac_waijian_hege_lanban)
    TextView acWaijianHegeLanban;
    @BindView(R.id.ac_waijian_hege_luntai)
    TextView acWaijianHegeLuntai;
    @BindView(R.id.ac_waijian_hege_cheshen)
    TextView acWaijianHegeCheshen;

    //endregion
    private String Line = "01";//外检车道
    private String Item_Code = "F1_Memo";//F1外检,R1路试，DC底盘动态
    private String Login_name = "", login_IDNumber;//当前登录的检测员的名字
    private CarsInforModel carsInforModel;
    public WaiJianItemActivity instances = null;
    private WaiJainDataModel waiJainDataModel = new WaiJainDataModel();//外检上传数据model

    private String times = "1";
    List<EditText> etTurnAs = new ArrayList<>();
    List<EditText> etTurnBs = new ArrayList<>();
    List<EditText> etTurnCs = new ArrayList<>();
    List<EditText> etTurnDs = new ArrayList<>();
    List<EditText> etTurnEs = new ArrayList<>();
    List<EditText> etTurnFs = new ArrayList<>();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.ac_waijian_item);
        ButterKnife.bind(this);
        setBackBtn();
        setTopTitle("外检项目");
        String logStrf = "\n" + "onCreate-----外检项目-----" + "\n";
        PDALogUtils.createLogFile(BaseApplication.JIANCE_MODE, logStrf.getBytes());
        instances = this;
        carsInforModel = (CarsInforModel) getIntent().getSerializableExtra("CarDetailsActivity_CarsInforModel");

        String logStrf22 = "\n" + "onCreate-----外检项目----carsInforModel-" + "\n" +
                "carsInforModel::" + carsInforModel.toString() + "\n" +
                "DLiftHeight::" + carsInforModel.getDLiftHeight() + "\n";
        PDALogUtils.createLogFile(BaseApplication.JIANCE_MODE, logStrf22.getBytes());
        times = carsInforModel.getTimes();
        login_IDNumber = getIntent().getExtras().getString("login_IDNumber", "");
        Login_name = getIntent().getExtras().getString("login_w_name", "");
        Line = getIntent().getExtras().getString("CarDetailsActivity_Line", "");
        acWaijianItemLine.setText(Line);
        etTurnAs.add(luntaiHuawenA1);
        etTurnAs.add(luntaiHuawenA2);
        etTurnAs.add(luntaiHuawenA3);
        etTurnAs.add(luntaiHuawenA4);
        etTurnBs.add(luntaiHuawenB1);
        etTurnBs.add(luntaiHuawenB2);
        etTurnBs.add(luntaiHuawenB3);
        etTurnBs.add(luntaiHuawenB4);
        etTurnCs.add(luntaiHuawenC1);
        etTurnCs.add(luntaiHuawenC2);
        etTurnCs.add(luntaiHuawenC3);
        etTurnCs.add(luntaiHuawenC4);
        etTurnDs.add(luntaiHuawenD1);
        etTurnDs.add(luntaiHuawenD2);
        etTurnDs.add(luntaiHuawenD3);
        etTurnDs.add(luntaiHuawenD4);
        etTurnEs.add(luntaiHuawenE1);
        etTurnEs.add(luntaiHuawenE2);
        etTurnEs.add(luntaiHuawenE3);
        etTurnEs.add(luntaiHuawenE4);
        etTurnFs.add(luntaiHuawenF1);
        etTurnFs.add(luntaiHuawenF2);
        etTurnFs.add(luntaiHuawenF3);
        etTurnFs.add(luntaiHuawenF4);
        if (carsInforModel != null) {
            //车牌号码
            if (!TextUtils.isEmpty(carsInforModel.getPlateRegion()) &&
                    !TextUtils.isEmpty(carsInforModel.getPlateNO())) {
                acWaijianItemNumber.setText(carsInforModel.getPlateRegion() +
                        carsInforModel.getPlateNO());
            }
            //检验次数```````
            if (!TextUtils.isEmpty(String.valueOf(carsInforModel.getTimes()))) {
                acWaijianItemTimes.setText(carsInforModel.getTimes() + "次");
            }
            //SN
            if (!TextUtils.isEmpty(String.valueOf(carsInforModel.getSN()))) {
                acWaijianItemSN.setText(carsInforModel.getSN());
            }

            //转向轴数量
            if (!TextUtils.isEmpty(String.valueOf(carsInforModel.getTurnAxis()))) {
                acWaijianItemZhuanxiangZhouShuliang.setText(carsInforModel.getTurnAxis());
            }
            //驻车制动是否使用电子控制装置
            if (!TextUtils.isEmpty(String.valueOf(carsInforModel.getElectronicHandbrake()))) {
                acWaijianItemDianziKongzhi.setText(carsInforModel.getElectronicHandbrake().equals("1") ? "是" : "否");
            }

            //是否配备空气悬架
            if (!TextUtils.isEmpty(String.valueOf(carsInforModel.getAirSuspension()))) {
                if (carsInforModel.getAirSuspension().equals("1")) {
                    acWaijianItemKongqiXuanjia.setText("是");
                    //空气悬架轴
                    if (!TextUtils.isEmpty(String.valueOf(carsInforModel.getAirSuspensionAxle()))) {
                        acWaijianItemKongqiXuanjiaZhou.setText(carsInforModel.getAirSuspensionAxle());
                    }
                } else {
                    acWaijianItemKongqiXuanjia.setText("否");
                }
            } else {
                acWaijianItemKongqiXuanjia.setText("否");
            }

            //是否全时/适时四驱
            if (!TextUtils.isEmpty(String.valueOf(carsInforModel.getDriverType()))) {
                if (carsInforModel.getDriverType().equals("2") || carsInforModel.getDriverType().equals("3")) {
                    acWaijianItemShifouQuanshi.setText("是");
                } else {
                    acWaijianItemShifouQuanshi.setText("否");
                }
            } else {
                acWaijianItemShifouQuanshi.setText("否");
            }
        }

//region
        if (carsInforModel.getPlateType().contains("15")) {
            guaLuntaiHuawenLl00.setVisibility(View.VISIBLE);
            //挂车
            int totalAxis = Integer.parseInt(carsInforModel.getTotalAxis());//总轴数
            switch (totalAxis) {
                case 1:
                    guaLuntaiHuawenLlA.setVisibility(View.VISIBLE);
                    guaLuntaiHuawenLlB.setVisibility(View.GONE);
                    guaLuntaiHuawenLlC.setVisibility(View.GONE);
                    guaLuntaiHuawenLlD.setVisibility(View.GONE);
                    guaLuntaiHuawenLlE.setVisibility(View.GONE);
                    guaLuntaiHuawenLlF.setVisibility(View.GONE);
                    break;
                case 2:
                    guaLuntaiHuawenLlA.setVisibility(View.VISIBLE);
                    guaLuntaiHuawenLlB.setVisibility(View.VISIBLE);
                    guaLuntaiHuawenLlC.setVisibility(View.GONE);
                    guaLuntaiHuawenLlD.setVisibility(View.GONE);
                    guaLuntaiHuawenLlE.setVisibility(View.GONE);
                    guaLuntaiHuawenLlF.setVisibility(View.GONE);
                    break;
                case 3:
                    guaLuntaiHuawenLlA.setVisibility(View.VISIBLE);
                    guaLuntaiHuawenLlB.setVisibility(View.VISIBLE);
                    guaLuntaiHuawenLlC.setVisibility(View.VISIBLE);
                    guaLuntaiHuawenLlD.setVisibility(View.GONE);
                    guaLuntaiHuawenLlE.setVisibility(View.GONE);
                    guaLuntaiHuawenLlF.setVisibility(View.GONE);
                    break;
                case 4:
                    guaLuntaiHuawenLlA.setVisibility(View.VISIBLE);
                    guaLuntaiHuawenLlB.setVisibility(View.VISIBLE);
                    guaLuntaiHuawenLlC.setVisibility(View.VISIBLE);
                    guaLuntaiHuawenLlD.setVisibility(View.VISIBLE);
                    guaLuntaiHuawenLlE.setVisibility(View.GONE);
                    guaLuntaiHuawenLlF.setVisibility(View.GONE);
                    break;
                case 5:
                    guaLuntaiHuawenLlA.setVisibility(View.VISIBLE);
                    guaLuntaiHuawenLlB.setVisibility(View.VISIBLE);
                    guaLuntaiHuawenLlC.setVisibility(View.VISIBLE);
                    guaLuntaiHuawenLlD.setVisibility(View.VISIBLE);
                    guaLuntaiHuawenLlE.setVisibility(View.VISIBLE);
                    guaLuntaiHuawenLlF.setVisibility(View.GONE);
                    break;
                case 6:
                    guaLuntaiHuawenLlA.setVisibility(View.VISIBLE);
                    guaLuntaiHuawenLlB.setVisibility(View.VISIBLE);
                    guaLuntaiHuawenLlC.setVisibility(View.VISIBLE);
                    guaLuntaiHuawenLlD.setVisibility(View.VISIBLE);
                    guaLuntaiHuawenLlE.setVisibility(View.VISIBLE);
                    guaLuntaiHuawenLlF.setVisibility(View.VISIBLE);
                    break;
            }
            luntaiHuawenLlA.setVisibility(View.VISIBLE);
            luntaiHuawenLlB.setVisibility(View.GONE);
            luntaiHuawenLlC.setVisibility(View.GONE);
            luntaiHuawenLlD.setVisibility(View.GONE);
            luntaiHuawenLlE.setVisibility(View.GONE);
            luntaiHuawenLlF.setVisibility(View.GONE);
            otherLuntaiHuawenLlA.setVisibility(View.VISIBLE);
            otherLuntaiHuawenLlB.setVisibility(View.GONE);
            otherLuntaiHuawenLlC.setVisibility(View.GONE);
            otherLuntaiHuawenLlD.setVisibility(View.GONE);
            otherLuntaiHuawenLlE.setVisibility(View.GONE);
            otherLuntaiHuawenLlF.setVisibility(View.GONE);
            String GTireTreadDepth;
            if (Integer.valueOf(times) > 1 && !TextUtils.isEmpty(carsInforModel.getGTireTreadDepth())) {
                //轮胎花纹（挂车）
                GTireTreadDepth = carsInforModel.getGTireTreadDepth();
                if (GTireTreadDepth.contains("F")) {
                    //六轴
                    String[] splitGua = GTireTreadDepth.split("/");
                    guaLuntaiHuawenA1.setText(splitGua[0].split(":").length > 1 ? splitGua[0].split(":")[1] : "");
                    guaLuntaiHuawenA2.setText(splitGua[1].split(":").length > 1 ? splitGua[1].split(":")[1] : "");
                    guaLuntaiHuawenA3.setText(splitGua[2].split(":").length > 1 ? splitGua[2].split(":")[1] : "");
                    guaLuntaiHuawenA4.setText(splitGua[3].split(":").length > 1 ? splitGua[3].split(":")[1] : "");
                    guaLuntaiHuawenB1.setText(splitGua[4].split(":").length > 1 ? splitGua[4].split(":")[1] : "");
                    guaLuntaiHuawenB2.setText(splitGua[5].split(":").length > 1 ? splitGua[5].split(":")[1] : "");
                    guaLuntaiHuawenB3.setText(splitGua[6].split(":").length > 1 ? splitGua[6].split(":")[1] : "");
                    guaLuntaiHuawenB4.setText(splitGua[7].split(":").length > 1 ? splitGua[7].split(":")[1] : "");
                    guaLuntaiHuawenC1.setText(splitGua[8].split(":").length > 1 ? splitGua[8].split(":")[1] : "");
                    guaLuntaiHuawenC2.setText(splitGua[9].split(":").length > 1 ? splitGua[9].split(":")[1] : "");
                    guaLuntaiHuawenC3.setText(splitGua[10].split(":").length > 1 ? splitGua[10].split(":")[1] : "");
                    guaLuntaiHuawenC4.setText(splitGua[11].split(":").length > 1 ? splitGua[11].split(":")[1] : "");
                    guaLuntaiHuawenD1.setText(splitGua[12].split(":").length > 1 ? splitGua[12].split(":")[1] : "");
                    guaLuntaiHuawenD2.setText(splitGua[13].split(":").length > 1 ? splitGua[13].split(":")[1] : "");
                    guaLuntaiHuawenD3.setText(splitGua[14].split(":").length > 1 ? splitGua[14].split(":")[1] : "");
                    guaLuntaiHuawenD4.setText(splitGua[15].split(":").length > 1 ? splitGua[15].split(":")[1] : "");
                    guaLuntaiHuawenE1.setText(splitGua[16].split(":").length > 1 ? splitGua[16].split(":")[1] : "");
                    guaLuntaiHuawenE2.setText(splitGua[17].split(":").length > 1 ? splitGua[17].split(":")[1] : "");
                    guaLuntaiHuawenE3.setText(splitGua[18].split(":").length > 1 ? splitGua[18].split(":")[1] : "");
                    guaLuntaiHuawenE4.setText(splitGua[19].split(":").length > 1 ? splitGua[19].split(":")[1] : "");
                    guaLuntaiHuawenF1.setText(splitGua[20].split(":").length > 1 ? splitGua[20].split(":")[1] : "");
                    guaLuntaiHuawenF2.setText(splitGua[21].split(":").length > 1 ? splitGua[21].split(":")[1] : "");
                    guaLuntaiHuawenF3.setText(splitGua[22].split(":").length > 1 ? splitGua[22].split(":")[1] : "");
                    guaLuntaiHuawenF4.setText(splitGua[23].split(":").length > 1 ? splitGua[23].split(":")[1] : "");
                } else if (GTireTreadDepth.contains("E")) {
                    //5
                    String[] splitGua = GTireTreadDepth.split("/");
                    guaLuntaiHuawenA1.setText(splitGua[0].split(":").length > 1 ? splitGua[0].split(":")[1] : "");
                    guaLuntaiHuawenA2.setText(splitGua[1].split(":").length > 1 ? splitGua[1].split(":")[1] : "");
                    guaLuntaiHuawenA3.setText(splitGua[2].split(":").length > 1 ? splitGua[2].split(":")[1] : "");
                    guaLuntaiHuawenA4.setText(splitGua[3].split(":").length > 1 ? splitGua[3].split(":")[1] : "");
                    guaLuntaiHuawenB1.setText(splitGua[4].split(":").length > 1 ? splitGua[4].split(":")[1] : "");
                    guaLuntaiHuawenB2.setText(splitGua[5].split(":").length > 1 ? splitGua[5].split(":")[1] : "");
                    guaLuntaiHuawenB3.setText(splitGua[6].split(":").length > 1 ? splitGua[6].split(":")[1] : "");
                    guaLuntaiHuawenB4.setText(splitGua[7].split(":").length > 1 ? splitGua[7].split(":")[1] : "");
                    guaLuntaiHuawenC1.setText(splitGua[8].split(":").length > 1 ? splitGua[8].split(":")[1] : "");
                    guaLuntaiHuawenC2.setText(splitGua[9].split(":").length > 1 ? splitGua[9].split(":")[1] : "");
                    guaLuntaiHuawenC3.setText(splitGua[10].split(":").length > 1 ? splitGua[10].split(":")[1] : "");
                    guaLuntaiHuawenC4.setText(splitGua[11].split(":").length > 1 ? splitGua[11].split(":")[1] : "");
                    guaLuntaiHuawenD1.setText(splitGua[12].split(":").length > 1 ? splitGua[12].split(":")[1] : "");
                    guaLuntaiHuawenD2.setText(splitGua[13].split(":").length > 1 ? splitGua[13].split(":")[1] : "");
                    guaLuntaiHuawenD3.setText(splitGua[14].split(":").length > 1 ? splitGua[14].split(":")[1] : "");
                    guaLuntaiHuawenD4.setText(splitGua[15].split(":").length > 1 ? splitGua[15].split(":")[1] : "");
                    guaLuntaiHuawenE1.setText(splitGua[16].split(":").length > 1 ? splitGua[16].split(":")[1] : "");
                    guaLuntaiHuawenE2.setText(splitGua[17].split(":").length > 1 ? splitGua[17].split(":")[1] : "");
                    guaLuntaiHuawenE3.setText(splitGua[18].split(":").length > 1 ? splitGua[18].split(":")[1] : "");
                    guaLuntaiHuawenE4.setText(splitGua[19].split(":").length > 1 ? splitGua[19].split(":")[1] : "");

                } else if (GTireTreadDepth.contains("D")) {
                    String[] splitGua = GTireTreadDepth.split("/");
                    guaLuntaiHuawenA1.setText(splitGua[0].split(":").length > 1 ? splitGua[0].split(":")[1] : "");
                    guaLuntaiHuawenA2.setText(splitGua[1].split(":").length > 1 ? splitGua[1].split(":")[1] : "");
                    guaLuntaiHuawenA3.setText(splitGua[2].split(":").length > 1 ? splitGua[2].split(":")[1] : "");
                    guaLuntaiHuawenA4.setText(splitGua[3].split(":").length > 1 ? splitGua[3].split(":")[1] : "");
                    guaLuntaiHuawenB1.setText(splitGua[4].split(":").length > 1 ? splitGua[4].split(":")[1] : "");
                    guaLuntaiHuawenB2.setText(splitGua[5].split(":").length > 1 ? splitGua[5].split(":")[1] : "");
                    guaLuntaiHuawenB3.setText(splitGua[6].split(":").length > 1 ? splitGua[6].split(":")[1] : "");
                    guaLuntaiHuawenB4.setText(splitGua[7].split(":").length > 1 ? splitGua[7].split(":")[1] : "");
                    guaLuntaiHuawenC1.setText(splitGua[8].split(":").length > 1 ? splitGua[8].split(":")[1] : "");
                    guaLuntaiHuawenC2.setText(splitGua[9].split(":").length > 1 ? splitGua[9].split(":")[1] : "");
                    guaLuntaiHuawenC3.setText(splitGua[10].split(":").length > 1 ? splitGua[10].split(":")[1] : "");
                    guaLuntaiHuawenC4.setText(splitGua[11].split(":").length > 1 ? splitGua[11].split(":")[1] : "");
                    guaLuntaiHuawenD1.setText(splitGua[12].split(":").length > 1 ? splitGua[12].split(":")[1] : "");
                    guaLuntaiHuawenD2.setText(splitGua[13].split(":").length > 1 ? splitGua[13].split(":")[1] : "");
                    guaLuntaiHuawenD3.setText(splitGua[14].split(":").length > 1 ? splitGua[14].split(":")[1] : "");
                    guaLuntaiHuawenD4.setText(splitGua[15].split(":").length > 1 ? splitGua[15].split(":")[1] : "");
                } else if (GTireTreadDepth.contains("C")) {
                    String[] splitGua = GTireTreadDepth.split("/");
                    // "A1:7.67/A2:9.83/B1:8.28/B2:7.62/" ["A1:7.67","A2:9.83","B1:8.28","B2:7.62"]
                    guaLuntaiHuawenA1.setText(splitGua[0].split(":").length > 1 ? splitGua[0].split(":")[1] : "");
                    guaLuntaiHuawenA2.setText(splitGua[1].split(":").length > 1 ? splitGua[1].split(":")[1] : "");


                    guaLuntaiHuawenA3.setText(splitGua[2].split(":").length > 1 ? splitGua[2].split(":")[1] : "");
                    guaLuntaiHuawenA4.setText(splitGua[3].split(":").length > 1 ? splitGua[3].split(":")[1] : "");
                    guaLuntaiHuawenB1.setText(splitGua[4].split(":").length > 1 ? splitGua[4].split(":")[1] : "");
                    guaLuntaiHuawenB2.setText(splitGua[5].split(":").length > 1 ? splitGua[5].split(":")[1] : "");
                    guaLuntaiHuawenB3.setText(splitGua[6].split(":").length > 1 ? splitGua[6].split(":")[1] : "");
                    guaLuntaiHuawenB4.setText(splitGua[7].split(":").length > 1 ? splitGua[7].split(":")[1] : "");


                    guaLuntaiHuawenC1.setText(splitGua[8].split(":").length > 1 ? splitGua[8].split(":")[1] : "");
                    guaLuntaiHuawenC2.setText(splitGua[9].split(":").length > 1 ? splitGua[9].split(":")[1] : "");
                    guaLuntaiHuawenC3.setText(splitGua[10].split(":").length > 1 ? splitGua[10].split(":")[1] : "");
                    guaLuntaiHuawenC4.setText(splitGua[11].split(":").length > 1 ? splitGua[11].split(":")[1] : "");
                } else if (GTireTreadDepth.contains("B")) {
                    String[] splitGua = GTireTreadDepth.split("/");
                    guaLuntaiHuawenA1.setText(splitGua[0].split(":").length > 1 ? splitGua[0].split(":")[1] : "");
                    guaLuntaiHuawenA2.setText(splitGua[1].split(":").length > 1 ? splitGua[1].split(":")[1] : "");
                    guaLuntaiHuawenA3.setText(splitGua[2].split(":").length > 1 ? splitGua[2].split(":")[1] : "");
                    guaLuntaiHuawenA4.setText(splitGua[3].split(":").length > 1 ? splitGua[3].split(":")[1] : "");
                    guaLuntaiHuawenB1.setText(splitGua[4].split(":").length > 1 ? splitGua[4].split(":")[1] : "");
                    guaLuntaiHuawenB2.setText(splitGua[5].split(":").length > 1 ? splitGua[5].split(":")[1] : "");
                    guaLuntaiHuawenB3.setText(splitGua[6].split(":").length > 1 ? splitGua[6].split(":")[1] : "");
                    guaLuntaiHuawenB4.setText(splitGua[7].split(":").length > 1 ? splitGua[7].split(":")[1] : "");
                } else if (GTireTreadDepth.contains("A")) {
                    //1
                    String[] splitGua = GTireTreadDepth.split("/");
                    if (splitGua.length < 3) {
                        guaLuntaiHuawenA1.setText(splitGua[0].split(":").length > 1 ? splitGua[0].split(":")[1] : "");
                        guaLuntaiHuawenA2.setText(splitGua[1].split(":").length > 1 ? splitGua[1].split(":")[1] : "");
                    } else {
                        guaLuntaiHuawenA1.setText(splitGua[0].split(":").length > 1 ? splitGua[0].split(":")[1] : "");
                        guaLuntaiHuawenA2.setText(splitGua[1].split(":").length > 1 ? splitGua[1].split(":")[1] : "");
                        guaLuntaiHuawenA3.setText(splitGua[2].split(":").length > 1 ? splitGua[2].split(":")[1] : "");
                        guaLuntaiHuawenA4.setText(splitGua[3].split(":").length > 1 ? splitGua[3].split(":")[1] : "");
                    }
                }
            }
            String TurnTireTreadDepth;
            if (!TextUtils.isEmpty(carsInforModel.getTurnTireTreadDepth())) {
                TurnTireTreadDepth = carsInforModel.getTurnTireTreadDepth();
                if (TurnTireTreadDepth.contains("A")) {
                    String[] splitTurn = TurnTireTreadDepth.split("/");
                    // "A1:7.67/A2:9.83/B1:8.28/B2:7.62/" ["A1:7.67","A2:9.83","B1:8.28","B2:7.62"]
                    if (splitTurn.length < 3) {
                        luntaiHuawenA1.setText(splitTurn[0].split(":").length > 1 ? splitTurn[0].split(":")[1] : "");
                        luntaiHuawenA2.setText(splitTurn[1].split(":").length > 1 ? splitTurn[1].split(":")[1] : "");
                    } else {
                        luntaiHuawenA1.setText(splitTurn[0].split(":").length > 1 ? splitTurn[0].split(":")[1] : "");
                        luntaiHuawenA2.setText(splitTurn[1].split(":").length > 1 ? splitTurn[1].split(":")[1] : "");
                        luntaiHuawenA3.setText(splitTurn[2].split(":").length > 1 ? splitTurn[2].split(":")[1] : "");
                        luntaiHuawenA4.setText(splitTurn[3].split(":").length > 1 ? splitTurn[3].split(":")[1] : "");
                    }
                }
            }
            String OtherTireTreadDepth;
            if (!TextUtils.isEmpty(carsInforModel.getOtherTireTreadDepth())) {
                OtherTireTreadDepth = carsInforModel.getOtherTireTreadDepth();
                if (OtherTireTreadDepth.contains("A")) {
                    String[] splitOther = OtherTireTreadDepth.split("/");
                    if (splitOther.length < 3) {
                        otherLuntaiHuawenA1.setText(splitOther[0].split(":").length > 1 ? splitOther[0].split(":")[1] : "");
                        otherLuntaiHuawenA2.setText(splitOther[1].split(":").length > 1 ? splitOther[1].split(":")[1] : "");
                    } else {
                        otherLuntaiHuawenA1.setText(splitOther[0].split(":").length > 1 ? splitOther[0].split(":")[1] : "");
                        otherLuntaiHuawenA2.setText(splitOther[1].split(":").length > 1 ? splitOther[1].split(":")[1] : "");
                        otherLuntaiHuawenA3.setText(splitOther[2].split(":").length > 1 ? splitOther[2].split(":")[1] : "");
                        otherLuntaiHuawenA4.setText(splitOther[3].split(":").length > 1 ? splitOther[3].split(":")[1] : "");
                    }
                }
            }
        } else {
            guaLuntaiHuawenLl00.setVisibility(View.GONE);
            //非挂车
            int totalAxis = Integer.parseInt(carsInforModel.getTotalAxis());//总轴数
            int turnAxis = Integer.parseInt(carsInforModel.getTurnAxis());//转向轴
            int differenceValues = totalAxis - turnAxis;
            switch (turnAxis) {
                case 1:
                    luntaiHuawenLlA.setVisibility(View.VISIBLE);
                    luntaiHuawenLlB.setVisibility(View.GONE);
                    luntaiHuawenLlC.setVisibility(View.GONE);
                    luntaiHuawenLlD.setVisibility(View.GONE);
                    luntaiHuawenLlE.setVisibility(View.GONE);
                    luntaiHuawenLlF.setVisibility(View.GONE);
                    if (Integer.valueOf(times) > 1 && !TextUtils.isEmpty(carsInforModel.getTurnTireTreadDepth())) {
                        String turn = carsInforModel.getTurnTireTreadDepth();
                        String[] splitTurn = turn.split("/");
                        int turnLength = splitTurn.length;
                        List<Integer> turnAArr = new ArrayList<>();
                        for (int i = 0; i < turnLength; i++) {
                            if (splitTurn[i].split(":")[0].contains("A")) {
                                turnAArr.add(i);
                            }
                        }
                        String logStr = "此时，turnAxis==1,turn===" + turn + "\n" + "splitTurn.toString()===="
                                + Arrays.toString(splitTurn) + "\n" + "turnAArr===" + turnAArr + "\n";
                        Log.e("tag", logStr);
                        PDALogUtils.createLogFile(BaseApplication.JIANCE_MODE, logStr.getBytes());
                        for (int i = 0; i < turnAArr.size(); i++) {
                            etTurnAs.get(i).setText(splitTurn[turnAArr.get(i)].split(":").length > 1 ? splitTurn[turnAArr.get(i)].split(":")[1] : "");
                        }
                    }
                    differenceValuesView(differenceValues, turnAxis);
                    Log.e("tag", "-------767------");
                    break;
                case 2:
                    luntaiHuawenLlA.setVisibility(View.VISIBLE);
                    luntaiHuawenLlB.setVisibility(View.VISIBLE);
                    luntaiHuawenLlC.setVisibility(View.GONE);
                    luntaiHuawenLlD.setVisibility(View.GONE);
                    luntaiHuawenLlE.setVisibility(View.GONE);
                    luntaiHuawenLlF.setVisibility(View.GONE);
                    if (Integer.valueOf(times) > 1 && !TextUtils.isEmpty(carsInforModel.getTurnTireTreadDepth())) {
                        String turn = carsInforModel.getTurnTireTreadDepth();
                        // "A1:7.67/A2:9.83/B1:8.28/B2:7.62/" ["A1:7.67","A2:9.83","B1:8.28","B2:7.62"]
                        String[] splitTurn = turn.split("/");
                        int turnLength = splitTurn.length;
                        List<Integer> turnAArr = new ArrayList<>();
                        List<Integer> turnBArr = new ArrayList<>();
                        for (int i = 0; i < turnLength; i++) {
                            if (splitTurn[i].split(":")[0].contains("A")) {
                                turnAArr.add(i);
                            } else if (splitTurn[i].split(":")[0].contains("B")) {
                                turnBArr.add(i);
                            }
                        }
                        String logStr = "此时，turnAxis==2,turn===" + turn + "\n" + "splitTurn.toString()===="
                                + Arrays.toString(splitTurn) + "\n" + "turnAArr===" + turnAArr + "\n" + "turnBArr"
                                + turnBArr;
                        PDALogUtils.createLogFile(BaseApplication.JIANCE_MODE, logStr.getBytes());
//                            for (int i = 0; i < turnAArr.size(); i++) {
                        for (int i = 0; i < turnAArr.size(); i++) {
                            etTurnAs.get(i).setText(splitTurn[turnAArr.get(i)].split(":").length > 1 ? splitTurn[turnAArr.get(i)].split(":")[1] : "");
                        }
                        for (int i = 0; i < turnBArr.size(); i++) {
                            etTurnBs.get(i).setText(splitTurn[turnBArr.get(i)].split(":").length > 1 ? splitTurn[turnBArr.get(i)].split(":")[1] : "");
                        }
                    }
                    differenceValuesView(differenceValues, turnAxis);
                    Log.e("tag", "-------816------");
                    break;
                case 3:
                    luntaiHuawenLlA.setVisibility(View.VISIBLE);
                    luntaiHuawenLlB.setVisibility(View.VISIBLE);
                    luntaiHuawenLlC.setVisibility(View.VISIBLE);
                    luntaiHuawenLlD.setVisibility(View.GONE);
                    luntaiHuawenLlE.setVisibility(View.GONE);
                    luntaiHuawenLlF.setVisibility(View.GONE);
                    if (Integer.valueOf(times) > 1 && !TextUtils.isEmpty(carsInforModel.getTurnTireTreadDepth())) {
                        String turn = carsInforModel.getTurnTireTreadDepth();
                        // "A1:7.67/A2:9.83/B1:8.28/B2:7.62/" ["A1:7.67","A2:9.83","B1:8.28","B2:7.62"]
                        String[] splitTurn = turn.split("/");
                        int turnLength = splitTurn.length;
                        List<Integer> turnAArr = new ArrayList<>();
                        List<Integer> turnBArr = new ArrayList<>();
                        List<Integer> turnCArr = new ArrayList<>();
                        for (int i = 0; i < turnLength; i++) {
                            if (splitTurn[i].split(":")[0].contains("A")) {
                                turnAArr.add(i);
                            } else if (splitTurn[i].split(":")[0].contains("B")) {
                                turnBArr.add(i);
                            } else if (splitTurn[i].split(":")[0].contains("C")) {
                                turnCArr.add(i);
                            }
                        }
                        for (int i = 0; i < turnAArr.size(); i++) {
                            etTurnAs.get(i).setText(splitTurn[turnAArr.get(i)].split(":").length > 1 ? splitTurn[turnAArr.get(i)].split(":")[1] : "");
                        }
                        for (int i = 0; i < turnBArr.size(); i++) {
                            etTurnBs.get(i).setText(splitTurn[turnBArr.get(i)].split(":").length > 1 ? splitTurn[turnBArr.get(i)].split(":")[1] : "");
                        }
                        for (int i = 0; i < turnCArr.size(); i++) {
                            etTurnCs.get(i).setText(splitTurn[turnCArr.get(i)].split(":").length > 1 ? splitTurn[turnCArr.get(i)].split(":")[1] : "");
                        }
                    }
                    differenceValuesView(differenceValues, turnAxis);
                    Log.e("tag", "-------872------");
                    break;
                case 4:
                    luntaiHuawenLlA.setVisibility(View.VISIBLE);
                    luntaiHuawenLlB.setVisibility(View.VISIBLE);
                    luntaiHuawenLlC.setVisibility(View.VISIBLE);
                    luntaiHuawenLlD.setVisibility(View.VISIBLE);
                    luntaiHuawenLlE.setVisibility(View.GONE);
                    luntaiHuawenLlF.setVisibility(View.GONE);
                    if (Integer.valueOf(times) > 1 && !TextUtils.isEmpty(carsInforModel.getTurnTireTreadDepth())) {
                        String turn = carsInforModel.getTurnTireTreadDepth();
                        String[] splitTurn = turn.split("/");
                        int turnLength = splitTurn.length;
                        List<Integer> turnAArr = new ArrayList<>();
                        List<Integer> turnBArr = new ArrayList<>();
                        List<Integer> turnCArr = new ArrayList<>();
                        List<Integer> turnDArr = new ArrayList<>();
                        for (int i = 0; i < turnLength; i++) {
                            if (splitTurn[i].split(":")[0].contains("A")) {
                                turnAArr.add(i);
                            } else if (splitTurn[i].split(":")[0].contains("B")) {
                                turnBArr.add(i);
                            } else if (splitTurn[i].split(":")[0].contains("C")) {
                                turnCArr.add(i);
                            } else if (splitTurn[i].split(":")[0].contains("D")) {
                                turnDArr.add(i);
                            }
                        }
                        for (int i = 0; i < turnAArr.size(); i++) {
                            etTurnAs.get(i).setText(splitTurn[turnAArr.get(i)].split(":").length > 1 ? splitTurn[turnAArr.get(i)].split(":")[1] : "");
                        }
                        for (int i = 0; i < turnBArr.size(); i++) {
                            etTurnBs.get(i).setText(splitTurn[turnBArr.get(i)].split(":").length > 1 ? splitTurn[turnBArr.get(i)].split(":")[1] : "");
                        }
                        for (int i = 0; i < turnCArr.size(); i++) {
                            etTurnCs.get(i).setText(splitTurn[turnCArr.get(i)].split(":").length > 1 ? splitTurn[turnCArr.get(i)].split(":")[1] : "");
                        }
                        for (int i = 0; i < turnDArr.size(); i++) {
                            etTurnDs.get(i).setText(splitTurn[turnDArr.get(i)].split(":").length > 1 ? splitTurn[turnDArr.get(i)].split(":")[1] : "");
                        }
                    }
                    differenceValuesView(differenceValues, turnAxis);
                    Log.e("tag", "-------943------");
                    break;
                case 5:
                    luntaiHuawenLlA.setVisibility(View.VISIBLE);
                    luntaiHuawenLlB.setVisibility(View.VISIBLE);
                    luntaiHuawenLlC.setVisibility(View.VISIBLE);
                    luntaiHuawenLlD.setVisibility(View.VISIBLE);
                    luntaiHuawenLlE.setVisibility(View.VISIBLE);
                    luntaiHuawenLlF.setVisibility(View.GONE);
                    if (Integer.valueOf(times) > 1 && !TextUtils.isEmpty(carsInforModel.getTurnTireTreadDepth())) {
                        String turn = carsInforModel.getTurnTireTreadDepth();
                        String[] splitTurn = turn.split("/");
                        int turnLength = splitTurn.length;
                        List<Integer> turnAArr = new ArrayList<>();
                        List<Integer> turnBArr = new ArrayList<>();
                        List<Integer> turnCArr = new ArrayList<>();
                        List<Integer> turnDArr = new ArrayList<>();
                        List<Integer> turnEArr = new ArrayList<>();
                        for (int i = 0; i < turnLength; i++) {
                            if (splitTurn[i].split(":")[0].contains("A")) {
                                turnAArr.add(i);
                            } else if (splitTurn[i].split(":")[0].contains("B")) {
                                turnBArr.add(i);
                            } else if (splitTurn[i].split(":")[0].contains("C")) {
                                turnCArr.add(i);
                            } else if (splitTurn[i].split(":")[0].contains("D")) {
                                turnDArr.add(i);
                            } else if (splitTurn[i].split(":")[0].contains("E")) {
                                turnEArr.add(i);
                            }
                        }
                        for (int i = 0; i < turnAArr.size(); i++) {
                            etTurnAs.get(i).setText(splitTurn[turnAArr.get(i)].split(":").length > 1 ? splitTurn[turnAArr.get(i)].split(":")[1] : "");
                        }
                        for (int i = 0; i < turnBArr.size(); i++) {
                            etTurnBs.get(i).setText(splitTurn[turnBArr.get(i)].split(":").length > 1 ? splitTurn[turnBArr.get(i)].split(":")[1] : "");
                        }
                        for (int i = 0; i < turnCArr.size(); i++) {
                            etTurnCs.get(i).setText(splitTurn[turnCArr.get(i)].split(":").length > 1 ? splitTurn[turnCArr.get(i)].split(":")[1] : "");
                        }
                        for (int i = 0; i < turnDArr.size(); i++) {
                            etTurnDs.get(i).setText(splitTurn[turnDArr.get(i)].split(":").length > 1 ? splitTurn[turnDArr.get(i)].split(":")[1] : "");
                        }
                        for (int i = 0; i < turnEArr.size(); i++) {
                            etTurnEs.get(i).setText(splitTurn[turnEArr.get(i)].split(":").length > 1 ? splitTurn[turnEArr.get(i)].split(":")[1] : "");
                        }
                    }
                    differenceValuesView(differenceValues, turnAxis);
                    Log.e("tag", "-------1026------");
                    break;
                case 6:
                    luntaiHuawenLlA.setVisibility(View.VISIBLE);
                    luntaiHuawenLlB.setVisibility(View.VISIBLE);
                    luntaiHuawenLlC.setVisibility(View.VISIBLE);
                    luntaiHuawenLlD.setVisibility(View.VISIBLE);
                    luntaiHuawenLlE.setVisibility(View.VISIBLE);
                    luntaiHuawenLlF.setVisibility(View.VISIBLE);
                    if (Integer.valueOf(times) > 1 && !TextUtils.isEmpty(carsInforModel.getTurnTireTreadDepth())) {
                        String turn = carsInforModel.getTurnTireTreadDepth();
                        String[] splitTurn = turn.split("/");
                        int turnLength = splitTurn.length;
                        List<Integer> turnAArr = new ArrayList<>();
                        List<Integer> turnBArr = new ArrayList<>();
                        List<Integer> turnCArr = new ArrayList<>();
                        List<Integer> turnDArr = new ArrayList<>();
                        List<Integer> turnEArr = new ArrayList<>();
                        List<Integer> turnFArr = new ArrayList<>();
                        for (int i = 0; i < turnLength; i++) {
                            if (splitTurn[i].split(":")[0].contains("A")) {
                                turnAArr.add(i);
                            } else if (splitTurn[i].split(":")[0].contains("B")) {
                                turnBArr.add(i);
                            } else if (splitTurn[i].split(":")[0].contains("C")) {
                                turnCArr.add(i);
                            } else if (splitTurn[i].split(":")[0].contains("D")) {
                                turnDArr.add(i);
                            } else if (splitTurn[i].split(":")[0].contains("E")) {
                                turnEArr.add(i);
                            } else if (splitTurn[i].split(":")[0].contains("F")) {
                                turnFArr.add(i);
                            }
                        }
                        for (int i = 0; i < turnAArr.size(); i++) {
                            etTurnAs.get(i).setText(splitTurn[turnAArr.get(i)].split(":").length > 1 ? splitTurn[turnAArr.get(i)].split(":")[1] : "");
                        }
                        for (int i = 0; i < turnBArr.size(); i++) {
                            etTurnBs.get(i).setText(splitTurn[turnBArr.get(i)].split(":").length > 1 ? splitTurn[turnBArr.get(i)].split(":")[1] : "");
                        }
                        for (int i = 0; i < turnCArr.size(); i++) {
                            etTurnCs.get(i).setText(splitTurn[turnCArr.get(i)].split(":").length > 1 ? splitTurn[turnCArr.get(i)].split(":")[1] : "");
                        }
                        for (int i = 0; i < turnDArr.size(); i++) {
                            etTurnDs.get(i).setText(splitTurn[turnDArr.get(i)].split(":").length > 1 ? splitTurn[turnDArr.get(i)].split(":")[1] : "");
                        }
                        for (int i = 0; i < turnEArr.size(); i++) {
                            etTurnEs.get(i).setText(splitTurn[turnEArr.get(i)].split(":").length > 1 ? splitTurn[turnEArr.get(i)].split(":")[1] : "");
                        }
                        for (int i = 0; i < turnFArr.size(); i++) {
                            etTurnFs.get(i).setText(splitTurn[turnFArr.get(i)].split(":").length > 1 ? splitTurn[turnFArr.get(i)].split(":")[1] : "");
                        }
                    }
                    differenceValuesView(differenceValues, turnAxis);
                    Log.e("tag", "-------1122------");
                    break;
            }
        }
        //endregion
        Log.e("tag", "-------1126------");
        if (Integer.valueOf(times) > 1) {
            //复检
            Log.e("tag", "-------1129------");
            //外廓长
            if (!TextUtils.isEmpty(carsInforModel.getWKLength())) {
                Log.e("tag", "外廓长------" + carsInforModel.getWKLength());
                acWaijianItemWaikuoChang.setText(carsInforModel.getWKLength());
            }
            if (!TextUtils.isEmpty(carsInforModel.getWKWidth())) {
                acWaijianItemWaikuoKuan.setText(carsInforModel.getWKWidth());
            }
            if (!TextUtils.isEmpty(carsInforModel.getWKHeight())) {
                acWaijianItemWaikuoGao.setText(carsInforModel.getWKHeight());
            }
            Log.e("tag", "-------1141------");
//                if (carsInforModel.getTurnTireTreadDepth() != null) {
//                    //轮胎花纹（转向轮）
//
//                }
//                if (carsInforModel.getOtherTireTreadDepth() != null) {
//                    //轮胎花纹（其他轮）
//
//                }

            if (!TextUtils.isEmpty(carsInforModel.getDLiftHeight())) {
                //单车栏板高度
                String aa = "\n" + "单车栏板高度----carsInforModel.getDLiftHeight-" + "\n" +
                        "carsInforModel.getDLiftHeight::" + carsInforModel.getDLiftHeight() + "\n";
                PDALogUtils.createLogFile(BaseApplication.JIANCE_MODE, aa.getBytes());
                acWaijianItemChexiangLanbanGaodu.setText(carsInforModel.getDLiftHeight());
            }
            if (!TextUtils.isEmpty(carsInforModel.getGLiftHeight())) {
                //挂车栏板高度
                acWaijianItemGuaChexiangLanbanGaodu.setText(carsInforModel.getGLiftHeight());
            }
            if (!TextUtils.isEmpty(carsInforModel.getFirstAxisLeftHeight())) {
                acWaijianItemDiyizhouZuogaodu.setText(carsInforModel.getFirstAxisLeftHeight());
            }
            if (!TextUtils.isEmpty(carsInforModel.getFirstAxisRightHeight())) {
                acWaijianItemDiyizhouYougaodu.setText(carsInforModel.getFirstAxisRightHeight());
            }
            if (!TextUtils.isEmpty(carsInforModel.getFirstAxisHeightDiff())) {
                acWaijianItemDiyizhouZuoyouGaoducha.setText(carsInforModel.getFirstAxisHeightDiff());
            }
            if (!TextUtils.isEmpty(carsInforModel.getLastAxisLeftHeight())) {
                acWaijianItemZuihouzhouZuoGaodu.setText(carsInforModel.getLastAxisLeftHeight());
            }
            if (!TextUtils.isEmpty(carsInforModel.getLastAxisRightHeight())) {
                acWaijianItemZuihouzhouYouGaodu.setText(carsInforModel.getLastAxisRightHeight());
            }
            if (!TextUtils.isEmpty(carsInforModel.getLastAxisHeightDiff())) {
                acWaijianItemZuihouzhouZuoyouGaoducha.setText(carsInforModel.getLastAxisHeightDiff());
            }
            if (!TextUtils.isEmpty(carsInforModel.getGAxisLeftHeight())) {
                acWaijianItemGuaZuoGaoducha.setText(carsInforModel.getGAxisLeftHeight());
            }
            if (!TextUtils.isEmpty(carsInforModel.getGAxisRightHeight())) {
                acWaijianItemYouGaoducha.setText(carsInforModel.getGAxisRightHeight());
            }
            if (!TextUtils.isEmpty(carsInforModel.getGAxisHeightDiff())) {
                acWaijianItemGuaGaoduchaGaoducha.setText(carsInforModel.getGAxisHeightDiff());
            }
            if (!TextUtils.isEmpty(carsInforModel.getTireTreadVerdict())) {
                //轮胎花纹判定
                acWaijianHegeLuntai.setText(carsInforModel.getTireTreadVerdict());
            }
            if (!TextUtils.isEmpty(carsInforModel.getAxisLeftHeightVerdict())) {
                //高度差判定
                acWaijianHegeCheshen.setText(carsInforModel.getAxisLeftHeightVerdict());
            }
            if (!TextUtils.isEmpty(carsInforModel.getLiftHeightVerdict())) {
                //栏板高度判定
                acWaijianHegeLanban.setText(carsInforModel.getLiftHeightVerdict());
            }
            Log.e("tag", "-------1198------");
        }


        DialogSettings.style = (DialogSettings.STYLE.STYLE_KONGZUE);
        DialogSettings.cancelable = (true);              //全局对话框默认是否可以点击外围遮罩区域或返回键关闭，此开关不影响提示框（TipDialog）以及等待框（TipDialog）
        DialogSettings.cancelableTipDialog = (true);     //全局提示框及等待框（WaitDialog、TipDialog）默认是否可以关闭
        DialogSettings.DEBUGMODE = (true);
        DialogSettings.init();
        if (Integer.valueOf(carsInforModel.getTimes()) == 1) {
            init_DB_Data();
        }
    }


    // 如果数据库中有值，则界面显示
    void init_DB_Data() {
        UtilsLog.e("init_DB_Data==carNo===" + carsInforModel.getPlateRegion() +
                carsInforModel.getPlateNO());
        List<WaiJianItemModel> books = WaiJianItemModel.listAll(WaiJianItemModel.class);
//        List<WaiJianItemModel> books = WaiJianItemModel.find(WaiJianItemModel.class, "SN=?", carsInforModel.getSN());
        if (books != null && books.size() > 0) {
            UtilsLog.e("init_DB_Data==" + books.toString());
            WaiJianItemModel model = books.get(books.size() - 1);
            if (model != null) {
                acWaijianItemKongqiXuanjiaZhou.setText(model.getKongqiXuanjiaZhou());
                acWaijianItemWaikuoChang.setText(model.getWaikuoChang());
                acWaijianItemWaikuoKuan.setText(model.getWaikuoKuan());
                acWaijianItemWaikuoGao.setText(model.getWaikuoGao());
                acWaijianItemZhouju.setText(model.getZhouju());
                acWaijianItemZhuanxiangZhouShuliang.setText(model.getZhuanxiangzhou());
                acWaijianHegeLanban.setText(model.getHege_lanban());
//                acWaijianItemChexiangLanbanGaodu.setText(model.getChexiangLanbanGaodu());
                acWaijianHegeLuntai.setText(model.getHege_luntai());
//                acWaijianItemGuaChexiangLanbanGaodu.setText(model.getGuaCheLanbanGaodu());
                acWaijianItemGuaZuoGaoducha.setText(model.getGuaCheZuoGaodu());
                acWaijianItemYouGaoducha.setText(model.getGuaCheYouGaodu());
                acWaijianItemGuaGaoduchaGaoducha.setText(model.getGuaCheGaoduGaoducha());
                acWaijianItemDiyizhouZuogaodu.setText(model.getDiyizhouZuogaodu());
                acWaijianItemDiyizhouYougaodu.setText(model.getDiyizhouYougaodu());
                acWaijianItemDiyizhouZuoyouGaoducha.setText(model.getDiyizhouZuoyouGaodu());
                acWaijianItemZuihouzhouZuoGaodu.setText(model.getZuihouzhouZuoGaodu());
                acWaijianItemZuihouzhouYouGaodu.setText(model.getZuihouzhouYouGaodu());
                acWaijianItemZuihouzhouZuoyouGaoducha.setText(model.getZuihouzhouZuoyouGaodu());
                acWaijianItemDesc.setText(model.getDesc());
//                acWaijianItemBeizhu.setText(model.getRemark());
                acWaijianHegeCheshen.setText(model.getHege_cheshen());
                //驻车制动是否使用电子控制装置
                if (!TextUtils.isEmpty(model.getShifouDianzikongzhi())) {
                    acWaijianItemDianziKongzhi.setText(model.getShifouDianzikongzhi());
                }

                //是否配备空气悬架
                if (!TextUtils.isEmpty(model.getKongqiXuanjia())) {
                    if (!TextUtils.isEmpty(String.valueOf(carsInforModel.getAirSuspensionAxle()))) {
                        acWaijianItemKongqiXuanjiaZhou.setText(carsInforModel.getAirSuspensionAxle());
                    }
                    acWaijianItemKongqiXuanjia.setText(model.getKongqiXuanjia());

                } else {
//                    acWaijianItemKongqiXuanjia.setText("否");
                    if (!TextUtils.isEmpty(String.valueOf(carsInforModel.getAirSuspensionAxle()))) {
                        acWaijianItemKongqiXuanjiaZhou.setText(carsInforModel.getAirSuspensionAxle());
                    }
                    if (carsInforModel.getAirSuspension().equals("1")) {
                        acWaijianItemKongqiXuanjia.setText("是");
                    } else {
                        acWaijianItemKongqiXuanjia.setText("否");
                    }
                }
            } else {
                UtilsLog.e("init_DB_Data--model--空==");
            }
        } else {
            //驻车制动是否使用电子控制装置
            if (!TextUtils.isEmpty(String.valueOf(carsInforModel.getElectronicHandbrake()))) {
                acWaijianItemDianziKongzhi.setText(carsInforModel.getElectronicHandbrake().equals("1") ? "是" : "否");
            }

            //是否配备空气悬架
            if (!TextUtils.isEmpty(String.valueOf(carsInforModel.getAirSuspension()))) {
                if (carsInforModel.getAirSuspension().equals("1")) {
                    acWaijianItemKongqiXuanjia.setText("是");
                    //空气悬架轴
                    if (!TextUtils.isEmpty(String.valueOf(carsInforModel.getAirSuspensionAxle()))) {
                        acWaijianItemKongqiXuanjiaZhou.setText(carsInforModel.getAirSuspensionAxle());
                    }
                } else {
                    acWaijianItemKongqiXuanjia.setText("否");
                    if (!TextUtils.isEmpty(String.valueOf(carsInforModel.getAirSuspensionAxle()))) {
                        acWaijianItemKongqiXuanjiaZhou.setText(carsInforModel.getAirSuspensionAxle());
                    }
                }
            } else {
                acWaijianItemKongqiXuanjia.setText("否");
            }
            UtilsLog.e("init_DB_Data----空==");
        }
    }

    void differenceValuesView(int differenceValues, int turnAxis) {
        UtilsLog.e("differenceValuesView===differenceValues==" + differenceValues + "==turnAxis==" + turnAxis);
        try {
            String aa = "\n" + "differenceValuesView------" + "\n" +
                    "differenceValues::" + differenceValues + "\n" +
                    "TotalAxis::" + carsInforModel.getTotalAxis() + "\n" +
                    "OtherTireTreadDepth::" + carsInforModel.getOtherTireTreadDepth() + "\n" +
                    "turnAxis::" + turnAxis + "\n";
            PDALogUtils.createLogFile(BaseApplication.JIANCE_MODE, aa.getBytes());
        } catch (Exception e) {
            String aa = "\n" + "differenceValuesView----存在空值--" + "\n";
            PDALogUtils.createLogFile(BaseApplication.JIANCE_MODE, aa.getBytes());
        }

//        if (TextUtils.isEmpty(carsInforModel.getOtherTireTreadDepth())) {
//            return;
//        }
        String OtherTireTreadDepth = carsInforModel.getOtherTireTreadDepth();
        UtilsLog.e("differenceValuesView===OtherTireTreadDepth==" + OtherTireTreadDepth);
        if (differenceValues == 0) {
            otherLuntaiHuawenLlA.setVisibility(View.GONE);
            otherLuntaiHuawenLlB.setVisibility(View.GONE);
            otherLuntaiHuawenLlC.setVisibility(View.GONE);
            otherLuntaiHuawenLlD.setVisibility(View.GONE);
            otherLuntaiHuawenLlE.setVisibility(View.GONE);
            otherLuntaiHuawenLlF.setVisibility(View.GONE);
        } else if (differenceValues == 1) {
            if (turnAxis == 1) {
                otherLuntaiHuawenLlA.setVisibility(View.GONE);
                otherLuntaiHuawenLlB.setVisibility(View.VISIBLE);
                otherLuntaiHuawenLlC.setVisibility(View.GONE);
                otherLuntaiHuawenLlD.setVisibility(View.GONE);
                otherLuntaiHuawenLlE.setVisibility(View.GONE);
                otherLuntaiHuawenLlF.setVisibility(View.GONE);
                if (Integer.valueOf(times) > 1 && !TextUtils.isEmpty(OtherTireTreadDepth)) {
                    String[] splitOther = OtherTireTreadDepth.split("/");
                    if (OtherTireTreadDepth.contains("B")) {
                        if (splitOther.length < 3) {
                            otherLuntaiHuawenB1.setText(splitOther[0].split(":").length > 1 ? splitOther[0].split(":")[1] : "");
                            otherLuntaiHuawenB2.setText(splitOther[1].split(":").length > 1 ? splitOther[1].split(":")[1] : "");
                        } else {
                            otherLuntaiHuawenB1.setText(splitOther[0].split(":").length > 1 ? splitOther[0].split(":")[1] : "");
                            otherLuntaiHuawenB2.setText(splitOther[1].split(":").length > 1 ? splitOther[1].split(":")[1] : "");
                            otherLuntaiHuawenB3.setText(splitOther[2].split(":").length > 1 ? splitOther[2].split(":")[1] : "");
                            otherLuntaiHuawenB4.setText(splitOther[3].split(":").length > 1 ? splitOther[3].split(":")[1] : "");
                        }
//                        DisPlayOtherTire(splitOther,"B");
                    }
                }
            } else if (turnAxis == 2) {
                otherLuntaiHuawenLlA.setVisibility(View.GONE);
                otherLuntaiHuawenLlB.setVisibility(View.GONE);
                otherLuntaiHuawenLlC.setVisibility(View.VISIBLE);
                otherLuntaiHuawenLlD.setVisibility(View.GONE);
                otherLuntaiHuawenLlE.setVisibility(View.GONE);
                otherLuntaiHuawenLlF.setVisibility(View.GONE);
                if (Integer.valueOf(times) > 1 && !TextUtils.isEmpty(OtherTireTreadDepth)) {
                    String[] splitOther = OtherTireTreadDepth.split("/");
                    if (OtherTireTreadDepth.contains("C")) {
                        if (splitOther.length < 3) {
                            otherLuntaiHuawenC1.setText(splitOther[0].split(":").length > 1 ? splitOther[0].split(":")[1] : "");
                            otherLuntaiHuawenC2.setText(splitOther[1].split(":").length > 1 ? splitOther[1].split(":")[1] : "");
                        } else {
                            otherLuntaiHuawenC1.setText(splitOther[0].split(":").length > 1 ? splitOther[0].split(":")[1] : "");
                            otherLuntaiHuawenC2.setText(splitOther[1].split(":").length > 1 ? splitOther[1].split(":")[1] : "");
                            otherLuntaiHuawenC3.setText(splitOther[2].split(":").length > 1 ? splitOther[2].split(":")[1] : "");
                            otherLuntaiHuawenC4.setText(splitOther[3].split(":").length > 1 ? splitOther[3].split(":")[1] : "");
                        }
//                        DisPlayOtherTire(splitOther,"C");

                    }
                }
            } else if (turnAxis == 3) {
                otherLuntaiHuawenLlA.setVisibility(View.GONE);
                otherLuntaiHuawenLlB.setVisibility(View.GONE);
                otherLuntaiHuawenLlC.setVisibility(View.GONE);
                otherLuntaiHuawenLlD.setVisibility(View.VISIBLE);
                otherLuntaiHuawenLlE.setVisibility(View.GONE);
                otherLuntaiHuawenLlF.setVisibility(View.GONE);
                if (Integer.valueOf(times) > 1 && !TextUtils.isEmpty(OtherTireTreadDepth)) {
                    String[] splitOther = OtherTireTreadDepth.split("/");
                    if (OtherTireTreadDepth.contains("D")) {
                        if (splitOther.length < 3) {
                            otherLuntaiHuawenD1.setText(splitOther[0].split(":").length > 1 ? splitOther[0].split(":")[1] : "");
                            otherLuntaiHuawenD2.setText(splitOther[1].split(":").length > 1 ? splitOther[1].split(":")[1] : "");
                        } else {
                            otherLuntaiHuawenD1.setText(splitOther[0].split(":").length > 1 ? splitOther[0].split(":")[1] : "");
                            otherLuntaiHuawenD2.setText(splitOther[1].split(":").length > 1 ? splitOther[1].split(":")[1] : "");
                            otherLuntaiHuawenD3.setText(splitOther[2].split(":").length > 1 ? splitOther[2].split(":")[1] : "");
                            otherLuntaiHuawenD4.setText(splitOther[3].split(":").length > 1 ? splitOther[3].split(":")[1] : "");
                        }
//                        DisPlayOtherTire(splitOther,"D");
                    }
                }
            }
        } else if (differenceValues == 2) {
            UtilsLog.e("differenceValues == 2");
            if (turnAxis == 1) {
                UtilsLog.e("differenceValues == 2   turnAxis == 1");
                otherLuntaiHuawenLlA.setVisibility(View.GONE);
                otherLuntaiHuawenLlB.setVisibility(View.VISIBLE);
                otherLuntaiHuawenLlC.setVisibility(View.VISIBLE);
                otherLuntaiHuawenLlD.setVisibility(View.GONE);
                otherLuntaiHuawenLlE.setVisibility(View.GONE);
                otherLuntaiHuawenLlF.setVisibility(View.GONE);
                if (Integer.valueOf(times) > 1 && !TextUtils.isEmpty(OtherTireTreadDepth)) {
                    String[] splitOther = OtherTireTreadDepth.split("/");
                    if (OtherTireTreadDepth.contains("B")) {
                        if (splitOther.length < 3) {
                            otherLuntaiHuawenB1.setText(splitOther[0].split(":").length > 1 ? splitOther[0].split(":")[1] : "");
                            otherLuntaiHuawenB2.setText(splitOther[1].split(":").length > 1 ? splitOther[1].split(":")[1] : "");
                        } else {
                            otherLuntaiHuawenB1.setText(splitOther[0].split(":").length > 1 ? splitOther[0].split(":")[1] : "");
                            otherLuntaiHuawenB2.setText(splitOther[1].split(":").length > 1 ? splitOther[1].split(":")[1] : "");
                            otherLuntaiHuawenB3.setText(splitOther[2].split(":").length > 1 ? splitOther[2].split(":")[1] : "");
                            otherLuntaiHuawenB4.setText(splitOther[3].split(":").length > 1 ? splitOther[3].split(":")[1] : "");
                        }
//                        DisPlayOtherTire(splitOther,"B");
                    }
                    if (OtherTireTreadDepth.contains("C")) {
                        if (splitOther.length < 7) {
                            otherLuntaiHuawenC1.setText(splitOther[4].split(":").length > 1 ? splitOther[4].split(":")[1] : "");
                            otherLuntaiHuawenC2.setText(splitOther[5].split(":").length > 1 ? splitOther[5].split(":")[1] : "");
                        } else {
                            otherLuntaiHuawenC1.setText(splitOther[4].split(":").length > 1 ? splitOther[4].split(":")[1] : "");
                            otherLuntaiHuawenC2.setText(splitOther[5].split(":").length > 1 ? splitOther[5].split(":")[1] : "");
                            otherLuntaiHuawenC3.setText(splitOther[6].split(":").length > 1 ? splitOther[6].split(":")[1] : "");
                            otherLuntaiHuawenC4.setText(splitOther[7].split(":").length > 1 ? splitOther[7].split(":")[1] : "");
                        }
//                        DisPlayOtherTire(splitOther,"C");
                    }
                }
            } else if (turnAxis == 2) {
                UtilsLog.e("differenceValues == 2   turnAxis == 2");
                otherLuntaiHuawenLlA.setVisibility(View.GONE);
                otherLuntaiHuawenLlB.setVisibility(View.GONE);
                otherLuntaiHuawenLlC.setVisibility(View.VISIBLE);
                otherLuntaiHuawenLlD.setVisibility(View.VISIBLE);
                otherLuntaiHuawenLlE.setVisibility(View.GONE);
                otherLuntaiHuawenLlF.setVisibility(View.GONE);
                if (Integer.valueOf(times) > 1 && !TextUtils.isEmpty(OtherTireTreadDepth)) {
                    String[] splitOther = OtherTireTreadDepth.split("/");
                    UtilsLog.e("differenceValues == 2  splitOther==" + splitOther.toString());
                    if (OtherTireTreadDepth.contains("C")) {
                        if (splitOther.length < 3) {
                            otherLuntaiHuawenC1.setText(splitOther[0].split(":").length > 1 ? splitOther[0].split(":")[1] : "");
                            otherLuntaiHuawenC2.setText(splitOther[1].split(":").length > 1 ? splitOther[1].split(":")[1] : "");
                        } else {
                            otherLuntaiHuawenC1.setText(splitOther[0].split(":").length > 1 ? splitOther[0].split(":")[1] : "");
                            otherLuntaiHuawenC2.setText(splitOther[1].split(":").length > 1 ? splitOther[1].split(":")[1] : "");
                            otherLuntaiHuawenC3.setText(splitOther[2].split(":").length > 1 ? splitOther[2].split(":")[1] : "");
                            otherLuntaiHuawenC4.setText(splitOther[3].split(":").length > 1 ? splitOther[3].split(":")[1] : "");
                        }
//                        DisPlayOtherTire(splitOther,"C");
                    }
                    if (OtherTireTreadDepth.contains("D")) {
                        if (splitOther.length < 7) {
                            otherLuntaiHuawenD1.setText(splitOther[4].split(":").length > 1 ? splitOther[4].split(":")[1] : "");
                            otherLuntaiHuawenD2.setText(splitOther[5].split(":").length > 1 ? splitOther[5].split(":")[1] : "");
                        } else {
                            otherLuntaiHuawenD1.setText(splitOther[4].split(":").length > 1 ? splitOther[4].split(":")[1] : "");
                            otherLuntaiHuawenD2.setText(splitOther[5].split(":").length > 1 ? splitOther[5].split(":")[1] : "");
                            otherLuntaiHuawenD3.setText(splitOther[6].split(":").length > 1 ? splitOther[6].split(":")[1] : "");
                            otherLuntaiHuawenD4.setText(splitOther[7].split(":").length > 1 ? splitOther[7].split(":")[1] : "");
                        }
//                        DisPlayOtherTire(splitOther,"D");
                    }
                }
            } else if (turnAxis == 3) {
                UtilsLog.e("differenceValues == 2   turnAxis == 3");
                otherLuntaiHuawenLlA.setVisibility(View.GONE);
                otherLuntaiHuawenLlB.setVisibility(View.GONE);
                otherLuntaiHuawenLlC.setVisibility(View.GONE);
                otherLuntaiHuawenLlD.setVisibility(View.VISIBLE);
                otherLuntaiHuawenLlE.setVisibility(View.VISIBLE);
                otherLuntaiHuawenLlF.setVisibility(View.GONE);
                if (Integer.valueOf(times) > 1 && !TextUtils.isEmpty(OtherTireTreadDepth)) {
                    String[] splitOther = OtherTireTreadDepth.split("/");
                    if (OtherTireTreadDepth.contains("D")) {
                        if (splitOther.length < 3) {
                            otherLuntaiHuawenD1.setText(splitOther[0].split(":").length > 1 ? splitOther[0].split(":")[1] : "");
                            otherLuntaiHuawenD2.setText(splitOther[1].split(":").length > 1 ? splitOther[1].split(":")[1] : "");
                        } else {
                            otherLuntaiHuawenD1.setText(splitOther[0].split(":").length > 1 ? splitOther[0].split(":")[1] : "");
                            otherLuntaiHuawenD2.setText(splitOther[1].split(":").length > 1 ? splitOther[1].split(":")[1] : "");
                            otherLuntaiHuawenD3.setText(splitOther[2].split(":").length > 1 ? splitOther[2].split(":")[1] : "");
                            otherLuntaiHuawenD4.setText(splitOther[3].split(":").length > 1 ? splitOther[3].split(":")[1] : "");
                        }
//                        DisPlayOtherTire(splitOther,"D");
                    }
                    if (OtherTireTreadDepth.contains("E")) {
                        if (splitOther.length < 7) {
                            otherLuntaiHuawenE1.setText(splitOther[4].split(":").length > 1 ? splitOther[4].split(":")[1] : "");
                            otherLuntaiHuawenE2.setText(splitOther[5].split(":").length > 1 ? splitOther[5].split(":")[1] : "");
                        } else {
                            otherLuntaiHuawenE1.setText(splitOther[4].split(":").length > 1 ? splitOther[4].split(":")[1] : "");
                            otherLuntaiHuawenE2.setText(splitOther[5].split(":").length > 1 ? splitOther[5].split(":")[1] : "");
                            otherLuntaiHuawenE3.setText(splitOther[6].split(":").length > 1 ? splitOther[6].split(":")[1] : "");
                            otherLuntaiHuawenE4.setText(splitOther[7].split(":").length > 1 ? splitOther[7].split(":")[1] : "");
                        }
//                        DisPlayOtherTire(splitOther,"E");
                    }
                }
            }

        } else if (differenceValues == 3) {
            if (turnAxis == 1) {
                otherLuntaiHuawenLlA.setVisibility(View.GONE);
                otherLuntaiHuawenLlB.setVisibility(View.VISIBLE);
                otherLuntaiHuawenLlC.setVisibility(View.VISIBLE);
                otherLuntaiHuawenLlD.setVisibility(View.VISIBLE);
                otherLuntaiHuawenLlE.setVisibility(View.GONE);
                otherLuntaiHuawenLlF.setVisibility(View.GONE);
                if (Integer.valueOf(times) > 1 && !TextUtils.isEmpty(OtherTireTreadDepth)) {
                    String[] splitOther = OtherTireTreadDepth.split("/");
                    if (OtherTireTreadDepth.contains("B")) {
                        if (splitOther.length < 3) {
                            otherLuntaiHuawenB1.setText(splitOther[0].split(":").length > 1 ? splitOther[0].split(":")[1] : "");
                            otherLuntaiHuawenB2.setText(splitOther[1].split(":").length > 1 ? splitOther[1].split(":")[1] : "");
                        } else {
                            otherLuntaiHuawenB1.setText(splitOther[0].split(":").length > 1 ? splitOther[0].split(":")[1] : "");
                            otherLuntaiHuawenB2.setText(splitOther[1].split(":").length > 1 ? splitOther[1].split(":")[1] : "");
                            otherLuntaiHuawenB3.setText(splitOther[2].split(":").length > 1 ? splitOther[2].split(":")[1] : "");
                            otherLuntaiHuawenB4.setText(splitOther[3].split(":").length > 1 ? splitOther[3].split(":")[1] : "");
                        }
//                        DisPlayOtherTire(splitOther,"B");
                    }
                    if (OtherTireTreadDepth.contains("C")) {
                        if (splitOther.length < 7) {
                            otherLuntaiHuawenC1.setText(splitOther[4].split(":").length > 1 ? splitOther[4].split(":")[1] : "");
                            otherLuntaiHuawenC2.setText(splitOther[5].split(":").length > 1 ? splitOther[5].split(":")[1] : "");
                        } else {
                            otherLuntaiHuawenC1.setText(splitOther[4].split(":").length > 1 ? splitOther[4].split(":")[1] : "");
                            otherLuntaiHuawenC2.setText(splitOther[5].split(":").length > 1 ? splitOther[5].split(":")[1] : "");
                            otherLuntaiHuawenC3.setText(splitOther[6].split(":").length > 1 ? splitOther[6].split(":")[1] : "");
                            otherLuntaiHuawenC4.setText(splitOther[7].split(":").length > 1 ? splitOther[7].split(":")[1] : "");
                        }
//                        DisPlayOtherTire(splitOther,"C");
                    }
                    if (OtherTireTreadDepth.contains("D")) {
                        if (splitOther.length < 11) {
                            otherLuntaiHuawenD1.setText(splitOther[8].split(":").length > 1 ? splitOther[8].split(":")[1] : "");
                            otherLuntaiHuawenD2.setText(splitOther[9].split(":").length > 1 ? splitOther[9].split(":")[1] : "");
                        } else {
                            otherLuntaiHuawenD1.setText(splitOther[8].split(":").length > 1 ? splitOther[8].split(":")[1] : "");
                            otherLuntaiHuawenD2.setText(splitOther[9].split(":").length > 1 ? splitOther[9].split(":")[1] : "");
                            otherLuntaiHuawenD3.setText(splitOther[10].split(":").length > 1 ? splitOther[10].split(":")[1] : "");
                            otherLuntaiHuawenD4.setText(splitOther[11].split(":").length > 1 ? splitOther[11].split(":")[1] : "");
                        }
//                        DisPlayOtherTire(splitOther,"D");
                    }
                }
            } else if (turnAxis == 2) {
                otherLuntaiHuawenLlA.setVisibility(View.GONE);
                otherLuntaiHuawenLlB.setVisibility(View.GONE);
                otherLuntaiHuawenLlC.setVisibility(View.VISIBLE);
                otherLuntaiHuawenLlD.setVisibility(View.VISIBLE);
                otherLuntaiHuawenLlE.setVisibility(View.VISIBLE);
                otherLuntaiHuawenLlF.setVisibility(View.GONE);
                if (Integer.valueOf(times) > 1 && !TextUtils.isEmpty(OtherTireTreadDepth)) {
                    String[] splitOther = OtherTireTreadDepth.split("/");
                    if (OtherTireTreadDepth.contains("C")) {
                        if (splitOther.length < 3) {
                            otherLuntaiHuawenC1.setText(splitOther[0].split(":").length > 1 ? splitOther[0].split(":")[1] : "");
                            otherLuntaiHuawenC2.setText(splitOther[1].split(":").length > 1 ? splitOther[1].split(":")[1] : "");
                        } else {
                            otherLuntaiHuawenC1.setText(splitOther[0].split(":").length > 1 ? splitOther[0].split(":")[1] : "");
                            otherLuntaiHuawenC2.setText(splitOther[1].split(":").length > 1 ? splitOther[1].split(":")[1] : "");
                            otherLuntaiHuawenC3.setText(splitOther[2].split(":").length > 1 ? splitOther[2].split(":")[1] : "");
                            otherLuntaiHuawenC4.setText(splitOther[3].split(":").length > 1 ? splitOther[3].split(":")[1] : "");
                        }
//                        DisPlayOtherTire(splitOther,"C");
                    }
                    if (OtherTireTreadDepth.contains("D")) {
                        if (splitOther.length < 7) {
                            otherLuntaiHuawenD1.setText(splitOther[4].split(":").length > 1 ? splitOther[4].split(":")[1] : "");
                            otherLuntaiHuawenD2.setText(splitOther[5].split(":").length > 1 ? splitOther[5].split(":")[1] : "");
                        } else {
                            otherLuntaiHuawenD1.setText(splitOther[4].split(":").length > 1 ? splitOther[4].split(":")[1] : "");
                            otherLuntaiHuawenD2.setText(splitOther[5].split(":").length > 1 ? splitOther[5].split(":")[1] : "");
                            otherLuntaiHuawenD3.setText(splitOther[6].split(":").length > 1 ? splitOther[6].split(":")[1] : "");
                            otherLuntaiHuawenD4.setText(splitOther[7].split(":").length > 1 ? splitOther[7].split(":")[1] : "");
                        }
//                        DisPlayOtherTire(splitOther,"D");
                    }
                    if (OtherTireTreadDepth.contains("E")) {
                        if (splitOther.length < 11) {
                            otherLuntaiHuawenE1.setText(splitOther[8].split(":").length > 1 ? splitOther[8].split(":")[1] : "");
                            otherLuntaiHuawenE2.setText(splitOther[9].split(":").length > 1 ? splitOther[9].split(":")[1] : "");
                        } else {
                            otherLuntaiHuawenE1.setText(splitOther[8].split(":").length > 1 ? splitOther[8].split(":")[1] : "");
                            otherLuntaiHuawenE2.setText(splitOther[9].split(":").length > 1 ? splitOther[9].split(":")[1] : "");
                            otherLuntaiHuawenE3.setText(splitOther[10].split(":").length > 1 ? splitOther[10].split(":")[1] : "");
                            otherLuntaiHuawenE4.setText(splitOther[11].split(":").length > 1 ? splitOther[11].split(":")[1] : "");
                        }
//                        DisPlayOtherTire(splitOther,"E");
                    }
                }
            } else if (turnAxis == 3) {
                otherLuntaiHuawenLlA.setVisibility(View.GONE);
                otherLuntaiHuawenLlB.setVisibility(View.GONE);
                otherLuntaiHuawenLlC.setVisibility(View.GONE);
                otherLuntaiHuawenLlD.setVisibility(View.VISIBLE);
                otherLuntaiHuawenLlE.setVisibility(View.VISIBLE);
                otherLuntaiHuawenLlF.setVisibility(View.VISIBLE);
                if (Integer.valueOf(times) > 1 && !TextUtils.isEmpty(OtherTireTreadDepth)) {
                    String[] splitOther = OtherTireTreadDepth.split("/");
                    if (OtherTireTreadDepth.contains("D")) {
                        if (splitOther.length < 3) {
                            otherLuntaiHuawenD1.setText(splitOther[0].split(":").length > 1 ? splitOther[0].split(":")[1] : "");
                            otherLuntaiHuawenD2.setText(splitOther[1].split(":").length > 1 ? splitOther[1].split(":")[1] : "");
                        } else {
                            otherLuntaiHuawenD1.setText(splitOther[0].split(":").length > 1 ? splitOther[0].split(":")[1] : "");
                            otherLuntaiHuawenD2.setText(splitOther[1].split(":").length > 1 ? splitOther[1].split(":")[1] : "");
                            otherLuntaiHuawenD3.setText(splitOther[2].split(":").length > 1 ? splitOther[2].split(":")[1] : "");
                            otherLuntaiHuawenD4.setText(splitOther[3].split(":").length > 1 ? splitOther[3].split(":")[1] : "");
                        }
//                        DisPlayOtherTire(splitOther,"D");
                    }
                    if (OtherTireTreadDepth.contains("E")) {
                        if (splitOther.length < 7) {
                            otherLuntaiHuawenE1.setText(splitOther[4].split(":").length > 1 ? splitOther[4].split(":")[1] : "");
                            otherLuntaiHuawenE2.setText(splitOther[5].split(":").length > 1 ? splitOther[5].split(":")[1] : "");
                        } else {
                            otherLuntaiHuawenE1.setText(splitOther[4].split(":").length > 1 ? splitOther[4].split(":")[1] : "");
                            otherLuntaiHuawenE2.setText(splitOther[5].split(":").length > 1 ? splitOther[5].split(":")[1] : "");
                            otherLuntaiHuawenE3.setText(splitOther[6].split(":").length > 1 ? splitOther[6].split(":")[1] : "");
                            otherLuntaiHuawenE4.setText(splitOther[7].split(":").length > 1 ? splitOther[7].split(":")[1] : "");
                        }

//                        DisPlayOtherTire(splitOther,"E");
                    }
                    if (OtherTireTreadDepth.contains("F")) {
                        if (splitOther.length < 11) {
                            otherLuntaiHuawenF1.setText(splitOther[8].split(":").length > 1 ? splitOther[8].split(":")[1] : "");
                            otherLuntaiHuawenF2.setText(splitOther[9].split(":").length > 1 ? splitOther[9].split(":")[1] : "");
                        } else {
                            otherLuntaiHuawenF1.setText(splitOther[8].split(":").length > 1 ? splitOther[8].split(":")[1] : "");
                            otherLuntaiHuawenF2.setText(splitOther[9].split(":").length > 1 ? splitOther[9].split(":")[1] : "");
                            otherLuntaiHuawenF3.setText(splitOther[10].split(":").length > 1 ? splitOther[10].split(":")[1] : "");
                            otherLuntaiHuawenF4.setText(splitOther[11].split(":").length > 1 ? splitOther[11].split(":")[1] : "");
                        }
//                        DisPlayOtherTire(splitOther,"F");
                    }
                }
            }
        } else if (differenceValues == 4) {
            if (turnAxis == 1) {
                otherLuntaiHuawenLlA.setVisibility(View.GONE);
                otherLuntaiHuawenLlB.setVisibility(View.VISIBLE);
                otherLuntaiHuawenLlC.setVisibility(View.VISIBLE);
                otherLuntaiHuawenLlD.setVisibility(View.VISIBLE);
                otherLuntaiHuawenLlE.setVisibility(View.VISIBLE);
                otherLuntaiHuawenLlF.setVisibility(View.GONE);
                if (Integer.valueOf(times) > 1 && !TextUtils.isEmpty(OtherTireTreadDepth)) {
                    String[] splitOther = OtherTireTreadDepth.split("/");
                    if (OtherTireTreadDepth.contains("B")) {
                        if (splitOther.length < 3) {
                            otherLuntaiHuawenB1.setText(splitOther[0].split(":").length > 1 ? splitOther[0].split(":")[1] : "");
                            otherLuntaiHuawenB2.setText(splitOther[1].split(":").length > 1 ? splitOther[1].split(":")[1] : "");
                        } else {
                            otherLuntaiHuawenB1.setText(splitOther[0].split(":").length > 1 ? splitOther[0].split(":")[1] : "");
                            otherLuntaiHuawenB2.setText(splitOther[1].split(":").length > 1 ? splitOther[1].split(":")[1] : "");
                            otherLuntaiHuawenB3.setText(splitOther[2].split(":").length > 1 ? splitOther[2].split(":")[1] : "");
                            otherLuntaiHuawenB4.setText(splitOther[3].split(":").length > 1 ? splitOther[3].split(":")[1] : "");
                        }
//                        DisPlayOtherTire(splitOther,"B");
                    }
                    if (OtherTireTreadDepth.contains("C")) {
                        if (splitOther.length < 7) {
                            otherLuntaiHuawenC1.setText(splitOther[4].split(":").length > 1 ? splitOther[4].split(":")[1] : "");
                            otherLuntaiHuawenC2.setText(splitOther[5].split(":").length > 1 ? splitOther[5].split(":")[1] : "");
                        } else {
                            otherLuntaiHuawenC1.setText(splitOther[4].split(":").length > 1 ? splitOther[4].split(":")[1] : "");
                            otherLuntaiHuawenC2.setText(splitOther[5].split(":").length > 1 ? splitOther[5].split(":")[1] : "");
                            otherLuntaiHuawenC3.setText(splitOther[6].split(":").length > 1 ? splitOther[6].split(":")[1] : "");
                            otherLuntaiHuawenC4.setText(splitOther[7].split(":").length > 1 ? splitOther[7].split(":")[1] : "");
                        }
//                        DisPlayOtherTire(splitOther,"C");
                    }
                    if (OtherTireTreadDepth.contains("D")) {
                        if (splitOther.length < 11) {
                            otherLuntaiHuawenD1.setText(splitOther[8].split(":").length > 1 ? splitOther[8].split(":")[1] : "");
                            otherLuntaiHuawenD2.setText(splitOther[9].split(":").length > 1 ? splitOther[9].split(":")[1] : "");
                        } else {
                            otherLuntaiHuawenD1.setText(splitOther[8].split(":").length > 1 ? splitOther[8].split(":")[1] : "");
                            otherLuntaiHuawenD2.setText(splitOther[9].split(":").length > 1 ? splitOther[9].split(":")[1] : "");
                            otherLuntaiHuawenD3.setText(splitOther[10].split(":").length > 1 ? splitOther[10].split(":")[1] : "");
                            otherLuntaiHuawenD4.setText(splitOther[11].split(":").length > 1 ? splitOther[11].split(":")[1] : "");
                        }
//                        DisPlayOtherTire(splitOther,"D");
                    }
                    if (OtherTireTreadDepth.contains("E")) {
                        if (splitOther.length < 15) {
                            otherLuntaiHuawenE1.setText(splitOther[12].split(":").length > 1 ? splitOther[12].split(":")[1] : "");
                            otherLuntaiHuawenE2.setText(splitOther[13].split(":").length > 1 ? splitOther[13].split(":")[1] : "");
                        } else {
                            otherLuntaiHuawenE1.setText(splitOther[12].split(":").length > 1 ? splitOther[12].split(":")[1] : "");
                            otherLuntaiHuawenE2.setText(splitOther[13].split(":").length > 1 ? splitOther[13].split(":")[1] : "");
                            otherLuntaiHuawenE3.setText(splitOther[14].split(":").length > 1 ? splitOther[14].split(":")[1] : "");
                            otherLuntaiHuawenE4.setText(splitOther[15].split(":").length > 1 ? splitOther[15].split(":")[1] : "");
                        }
//                        DisPlayOtherTire(splitOther,"E");
                    }
                }
            } else if (turnAxis == 2) {
                otherLuntaiHuawenLlA.setVisibility(View.GONE);
                otherLuntaiHuawenLlB.setVisibility(View.GONE);
                otherLuntaiHuawenLlC.setVisibility(View.VISIBLE);
                otherLuntaiHuawenLlD.setVisibility(View.VISIBLE);
                otherLuntaiHuawenLlE.setVisibility(View.VISIBLE);
                otherLuntaiHuawenLlF.setVisibility(View.VISIBLE);
                if (Integer.valueOf(times) > 1 && !TextUtils.isEmpty(OtherTireTreadDepth)) {
                    String[] splitOther = OtherTireTreadDepth.split("/");
                    if (OtherTireTreadDepth.contains("C")) {
                        if (splitOther.length < 3) {
                            otherLuntaiHuawenC1.setText(splitOther[0].split(":").length > 1 ? splitOther[0].split(":")[1] : "");
                            otherLuntaiHuawenC2.setText(splitOther[1].split(":").length > 1 ? splitOther[1].split(":")[1] : "");
                        } else {
                            otherLuntaiHuawenC1.setText(splitOther[0].split(":").length > 1 ? splitOther[0].split(":")[1] : "");
                            otherLuntaiHuawenC2.setText(splitOther[1].split(":").length > 1 ? splitOther[1].split(":")[1] : "");
                            otherLuntaiHuawenC3.setText(splitOther[2].split(":").length > 1 ? splitOther[2].split(":")[1] : "");
                            otherLuntaiHuawenC4.setText(splitOther[3].split(":").length > 1 ? splitOther[3].split(":")[1] : "");
                        }
//                        DisPlayOtherTire(splitOther,"C");
                    }
                    if (OtherTireTreadDepth.contains("D")) {
                        if (splitOther.length < 7) {
                            otherLuntaiHuawenD1.setText(splitOther[4].split(":").length > 1 ? splitOther[4].split(":")[1] : "");
                            otherLuntaiHuawenD2.setText(splitOther[5].split(":").length > 1 ? splitOther[5].split(":")[1] : "");
                        } else {
                            otherLuntaiHuawenD1.setText(splitOther[4].split(":").length > 1 ? splitOther[4].split(":")[1] : "");
                            otherLuntaiHuawenD2.setText(splitOther[5].split(":").length > 1 ? splitOther[5].split(":")[1] : "");
                            otherLuntaiHuawenD3.setText(splitOther[6].split(":").length > 1 ? splitOther[6].split(":")[1] : "");
                            otherLuntaiHuawenD4.setText(splitOther[7].split(":").length > 1 ? splitOther[7].split(":")[1] : "");
                        }
//                        DisPlayOtherTire(splitOther,"D");
                    }
                    if (OtherTireTreadDepth.contains("E")) {
                        if (splitOther.length < 11) {
                            otherLuntaiHuawenE1.setText(splitOther[8].split(":").length > 1 ? splitOther[8].split(":")[1] : "");
                            otherLuntaiHuawenE2.setText(splitOther[9].split(":").length > 1 ? splitOther[9].split(":")[1] : "");
                        } else {
                            otherLuntaiHuawenE1.setText(splitOther[8].split(":").length > 1 ? splitOther[8].split(":")[1] : "");
                            otherLuntaiHuawenE2.setText(splitOther[9].split(":").length > 1 ? splitOther[9].split(":")[1] : "");
                            otherLuntaiHuawenE3.setText(splitOther[10].split(":").length > 1 ? splitOther[10].split(":")[1] : "");
                            otherLuntaiHuawenE4.setText(splitOther[11].split(":").length > 1 ? splitOther[11].split(":")[1] : "");
                        }
//                        DisPlayOtherTire(splitOther,"E");
                    }
                    if (OtherTireTreadDepth.contains("F")) {
                        if (splitOther.length < 15) {
                            otherLuntaiHuawenF1.setText(splitOther[12].split(":").length > 1 ? splitOther[12].split(":")[1] : "");
                            otherLuntaiHuawenF2.setText(splitOther[13].split(":").length > 1 ? splitOther[13].split(":")[1] : "");
                        } else {
                            otherLuntaiHuawenF1.setText(splitOther[12].split(":").length > 1 ? splitOther[12].split(":")[1] : "");
                            otherLuntaiHuawenF2.setText(splitOther[13].split(":").length > 1 ? splitOther[13].split(":")[1] : "");
                            otherLuntaiHuawenF3.setText(splitOther[14].split(":").length > 1 ? splitOther[14].split(":")[1] : "");
                            otherLuntaiHuawenF4.setText(splitOther[15].split(":").length > 1 ? splitOther[15].split(":")[1] : "");
                        }
//                        DisPlayOtherTire(splitOther,"F");
                    }
                }
            } else if (turnAxis == 3) {
                otherLuntaiHuawenLlA.setVisibility(View.GONE);
                otherLuntaiHuawenLlB.setVisibility(View.GONE);
                otherLuntaiHuawenLlC.setVisibility(View.GONE);
                otherLuntaiHuawenLlD.setVisibility(View.VISIBLE);
                otherLuntaiHuawenLlE.setVisibility(View.VISIBLE);
                otherLuntaiHuawenLlF.setVisibility(View.VISIBLE);
                if (Integer.valueOf(times) > 1 && !TextUtils.isEmpty(OtherTireTreadDepth)) {
                    String[] splitOther = OtherTireTreadDepth.split("/");
                    if (OtherTireTreadDepth.contains("D")) {
                        if (splitOther.length < 3) {
                            otherLuntaiHuawenD1.setText(splitOther[0].split(":").length > 1 ? splitOther[0].split(":")[1] : "");
                            otherLuntaiHuawenD2.setText(splitOther[1].split(":").length > 1 ? splitOther[1].split(":")[1] : "");
                        } else {
                            otherLuntaiHuawenD1.setText(splitOther[0].split(":").length > 1 ? splitOther[0].split(":")[1] : "");
                            otherLuntaiHuawenD2.setText(splitOther[1].split(":").length > 1 ? splitOther[1].split(":")[1] : "");
                            otherLuntaiHuawenD3.setText(splitOther[2].split(":").length > 1 ? splitOther[2].split(":")[1] : "");
                            otherLuntaiHuawenD4.setText(splitOther[3].split(":").length > 1 ? splitOther[3].split(":")[1] : "");
                        }
//                        DisPlayOtherTire(splitOther,"D");
                    }
                    if (OtherTireTreadDepth.contains("E")) {
                        if (splitOther.length < 7) {
                            otherLuntaiHuawenE1.setText(splitOther[4].split(":").length > 1 ? splitOther[4].split(":")[1] : "");
                            otherLuntaiHuawenE2.setText(splitOther[5].split(":").length > 1 ? splitOther[5].split(":")[1] : "");
                        } else {
                            otherLuntaiHuawenE1.setText(splitOther[4].split(":").length > 1 ? splitOther[4].split(":")[1] : "");
                            otherLuntaiHuawenE2.setText(splitOther[5].split(":").length > 1 ? splitOther[5].split(":")[1] : "");
                            otherLuntaiHuawenE3.setText(splitOther[6].split(":").length > 1 ? splitOther[6].split(":")[1] : "");
                            otherLuntaiHuawenE4.setText(splitOther[7].split(":").length > 1 ? splitOther[7].split(":")[1] : "");
                        }
//                        DisPlayOtherTire(splitOther,"E");
                    }
                    if (OtherTireTreadDepth.contains("F")) {
                        if (splitOther.length < 11) {
                            otherLuntaiHuawenF1.setText(splitOther[8].split(":").length > 1 ? splitOther[8].split(":")[1] : "");
                            otherLuntaiHuawenF2.setText(splitOther[9].split(":").length > 1 ? splitOther[9].split(":")[1] : "");
                        } else {
                            otherLuntaiHuawenF1.setText(splitOther[8].split(":").length > 1 ? splitOther[8].split(":")[1] : "");
                            otherLuntaiHuawenF2.setText(splitOther[9].split(":").length > 1 ? splitOther[9].split(":")[1] : "");
                            otherLuntaiHuawenF3.setText(splitOther[10].split(":").length > 1 ? splitOther[10].split(":")[1] : "");
                            otherLuntaiHuawenF4.setText(splitOther[11].split(":").length > 1 ? splitOther[11].split(":")[1] : "");
                        }
//                        DisPlayOtherTire(splitOther,"F");
                    }
                }
            }
        } else if (differenceValues == 5) {
            if (turnAxis == 1) {
                otherLuntaiHuawenLlA.setVisibility(View.GONE);
                otherLuntaiHuawenLlB.setVisibility(View.VISIBLE);
                otherLuntaiHuawenLlC.setVisibility(View.VISIBLE);
                otherLuntaiHuawenLlD.setVisibility(View.VISIBLE);
                otherLuntaiHuawenLlE.setVisibility(View.VISIBLE);
                otherLuntaiHuawenLlF.setVisibility(View.VISIBLE);
                if (Integer.valueOf(times) > 1 && !TextUtils.isEmpty(OtherTireTreadDepth)) {
                    String[] splitOther = OtherTireTreadDepth.split("/");
                    if (OtherTireTreadDepth.contains("B")) {
                        if (splitOther.length < 3) {
                            otherLuntaiHuawenB1.setText(splitOther[0].split(":").length > 1 ? splitOther[0].split(":")[1] : "");
                            otherLuntaiHuawenB2.setText(splitOther[1].split(":").length > 1 ? splitOther[1].split(":")[1] : "");
                        } else {
                            otherLuntaiHuawenB1.setText(splitOther[0].split(":").length > 1 ? splitOther[0].split(":")[1] : "");
                            otherLuntaiHuawenB2.setText(splitOther[1].split(":").length > 1 ? splitOther[1].split(":")[1] : "");
                            otherLuntaiHuawenB3.setText(splitOther[2].split(":").length > 1 ? splitOther[2].split(":")[1] : "");
                            otherLuntaiHuawenB4.setText(splitOther[3].split(":").length > 1 ? splitOther[3].split(":")[1] : "");
                        }
//                        DisPlayOtherTire(splitOther,"B");
                    }
                    if (OtherTireTreadDepth.contains("C")) {
                        if (splitOther.length < 7) {
                            otherLuntaiHuawenC1.setText(splitOther[4].split(":").length > 1 ? splitOther[4].split(":")[1] : "");
                            otherLuntaiHuawenC2.setText(splitOther[5].split(":").length > 1 ? splitOther[5].split(":")[1] : "");
                        } else {
                            otherLuntaiHuawenC1.setText(splitOther[4].split(":").length > 1 ? splitOther[4].split(":")[1] : "");
                            otherLuntaiHuawenC2.setText(splitOther[5].split(":").length > 1 ? splitOther[5].split(":")[1] : "");
                            otherLuntaiHuawenC3.setText(splitOther[6].split(":").length > 1 ? splitOther[6].split(":")[1] : "");
                            otherLuntaiHuawenC4.setText(splitOther[7].split(":").length > 1 ? splitOther[7].split(":")[1] : "");
                        }
//                        DisPlayOtherTire(splitOther,"C");
                    }
                    if (OtherTireTreadDepth.contains("D")) {
                        if (splitOther.length < 11) {
                            otherLuntaiHuawenD1.setText(splitOther[8].split(":").length > 1 ? splitOther[8].split(":")[1] : "");
                            otherLuntaiHuawenD2.setText(splitOther[9].split(":").length > 1 ? splitOther[9].split(":")[1] : "");
                        } else {
                            otherLuntaiHuawenD1.setText(splitOther[8].split(":").length > 1 ? splitOther[8].split(":")[1] : "");
                            otherLuntaiHuawenD2.setText(splitOther[9].split(":").length > 1 ? splitOther[9].split(":")[1] : "");
                            otherLuntaiHuawenD3.setText(splitOther[10].split(":").length > 1 ? splitOther[10].split(":")[1] : "");
                            otherLuntaiHuawenD4.setText(splitOther[11].split(":").length > 1 ? splitOther[11].split(":")[1] : "");
                        }
//                        DisPlayOtherTire(splitOther,"D");
                    }
                    if (OtherTireTreadDepth.contains("E")) {
                        if (splitOther.length < 15) {
                            otherLuntaiHuawenE1.setText(splitOther[12].split(":").length > 1 ? splitOther[12].split(":")[1] : "");
                            otherLuntaiHuawenE2.setText(splitOther[13].split(":").length > 1 ? splitOther[13].split(":")[1] : "");
                        } else {
                            otherLuntaiHuawenE1.setText(splitOther[12].split(":").length > 1 ? splitOther[12].split(":")[1] : "");
                            otherLuntaiHuawenE2.setText(splitOther[13].split(":").length > 1 ? splitOther[13].split(":")[1] : "");
                            otherLuntaiHuawenE3.setText(splitOther[14].split(":").length > 1 ? splitOther[14].split(":")[1] : "");
                            otherLuntaiHuawenE4.setText(splitOther[15].split(":").length > 1 ? splitOther[15].split(":")[1] : "");
                        }
//                        DisPlayOtherTire(splitOther,"E");
                    }
                    if (OtherTireTreadDepth.contains("F")) {
                        if (splitOther.length < 19) {
                            otherLuntaiHuawenF1.setText(splitOther[16].split(":").length > 1 ? splitOther[16].split(":")[1] : "");
                            otherLuntaiHuawenF2.setText(splitOther[17].split(":").length > 1 ? splitOther[17].split(":")[1] : "");
                        } else {
                            otherLuntaiHuawenF1.setText(splitOther[16].split(":").length > 1 ? splitOther[16].split(":")[1] : "");
                            otherLuntaiHuawenF2.setText(splitOther[17].split(":").length > 1 ? splitOther[17].split(":")[1] : "");
                            otherLuntaiHuawenF3.setText(splitOther[18].split(":").length > 1 ? splitOther[18].split(":")[1] : "");
                            otherLuntaiHuawenF4.setText(splitOther[19].split(":").length > 1 ? splitOther[19].split(":")[1] : "");
                        }
//                        DisPlayOtherTire(splitOther,"F");
                    }
                }
            }
        }
    }

//    void differenceValuesView(int differenceValues, int turnAxis) {
//        if (differenceValues == 0) {
//            otherLuntaiHuawenLlA.setVisibility(View.GONE);
//            otherLuntaiHuawenLlB.setVisibility(View.GONE);
//            otherLuntaiHuawenLlC.setVisibility(View.GONE);
//            otherLuntaiHuawenLlD.setVisibility(View.GONE);
//            otherLuntaiHuawenLlE.setVisibility(View.GONE);
//            otherLuntaiHuawenLlF.setVisibility(View.GONE);
//        } else if (differenceValues == 1) {
//            if (turnAxis == 1) {
//                otherLuntaiHuawenLlA.setVisibility(View.GONE);
//                otherLuntaiHuawenLlB.setVisibility(View.VISIBLE);
//                otherLuntaiHuawenLlC.setVisibility(View.GONE);
//                otherLuntaiHuawenLlD.setVisibility(View.GONE);
//                otherLuntaiHuawenLlE.setVisibility(View.GONE);
//                otherLuntaiHuawenLlF.setVisibility(View.GONE);
//            } else if (turnAxis == 2) {
//                otherLuntaiHuawenLlA.setVisibility(View.GONE);
//                otherLuntaiHuawenLlB.setVisibility(View.GONE);
//                otherLuntaiHuawenLlC.setVisibility(View.VISIBLE);
//                otherLuntaiHuawenLlD.setVisibility(View.GONE);
//                otherLuntaiHuawenLlE.setVisibility(View.GONE);
//                otherLuntaiHuawenLlF.setVisibility(View.GONE);
//            } else if (turnAxis == 3) {
//                otherLuntaiHuawenLlA.setVisibility(View.GONE);
//                otherLuntaiHuawenLlB.setVisibility(View.GONE);
//                otherLuntaiHuawenLlC.setVisibility(View.GONE);
//                otherLuntaiHuawenLlD.setVisibility(View.VISIBLE);
//                otherLuntaiHuawenLlE.setVisibility(View.GONE);
//                otherLuntaiHuawenLlF.setVisibility(View.GONE);
//            }
//        } else if (differenceValues == 2) {
//            if (turnAxis == 1) {
//                otherLuntaiHuawenLlA.setVisibility(View.GONE);
//                otherLuntaiHuawenLlB.setVisibility(View.VISIBLE);
//                otherLuntaiHuawenLlC.setVisibility(View.VISIBLE);
//                otherLuntaiHuawenLlD.setVisibility(View.GONE);
//                otherLuntaiHuawenLlE.setVisibility(View.GONE);
//                otherLuntaiHuawenLlF.setVisibility(View.GONE);
//            } else if (turnAxis == 2) {
//                otherLuntaiHuawenLlA.setVisibility(View.GONE);
//                otherLuntaiHuawenLlB.setVisibility(View.GONE);
//                otherLuntaiHuawenLlC.setVisibility(View.VISIBLE);
//                otherLuntaiHuawenLlD.setVisibility(View.VISIBLE);
//                otherLuntaiHuawenLlE.setVisibility(View.GONE);
//                otherLuntaiHuawenLlF.setVisibility(View.GONE);
//            } else if (turnAxis == 3) {
//                otherLuntaiHuawenLlA.setVisibility(View.GONE);
//                otherLuntaiHuawenLlB.setVisibility(View.GONE);
//                otherLuntaiHuawenLlC.setVisibility(View.GONE);
//                otherLuntaiHuawenLlD.setVisibility(View.VISIBLE);
//                otherLuntaiHuawenLlE.setVisibility(View.VISIBLE);
//                otherLuntaiHuawenLlF.setVisibility(View.GONE);
//            }
//
//        } else if (differenceValues == 3) {
//            if (turnAxis == 1) {
//                otherLuntaiHuawenLlA.setVisibility(View.GONE);
//                otherLuntaiHuawenLlB.setVisibility(View.VISIBLE);
//                otherLuntaiHuawenLlC.setVisibility(View.VISIBLE);
//                otherLuntaiHuawenLlD.setVisibility(View.VISIBLE);
//                otherLuntaiHuawenLlE.setVisibility(View.GONE);
//                otherLuntaiHuawenLlF.setVisibility(View.GONE);
//            } else if (turnAxis == 2) {
//                otherLuntaiHuawenLlA.setVisibility(View.GONE);
//                otherLuntaiHuawenLlB.setVisibility(View.GONE);
//                otherLuntaiHuawenLlC.setVisibility(View.VISIBLE);
//                otherLuntaiHuawenLlD.setVisibility(View.VISIBLE);
//                otherLuntaiHuawenLlE.setVisibility(View.VISIBLE);
//                otherLuntaiHuawenLlF.setVisibility(View.GONE);
//            } else if (turnAxis == 3) {
//                otherLuntaiHuawenLlA.setVisibility(View.GONE);
//                otherLuntaiHuawenLlB.setVisibility(View.GONE);
//                otherLuntaiHuawenLlC.setVisibility(View.GONE);
//                otherLuntaiHuawenLlD.setVisibility(View.VISIBLE);
//                otherLuntaiHuawenLlE.setVisibility(View.VISIBLE);
//                otherLuntaiHuawenLlF.setVisibility(View.VISIBLE);
//            }
//        } else if (differenceValues == 4) {
//            if (turnAxis == 1) {
//                otherLuntaiHuawenLlA.setVisibility(View.GONE);
//                otherLuntaiHuawenLlB.setVisibility(View.VISIBLE);
//                otherLuntaiHuawenLlC.setVisibility(View.VISIBLE);
//                otherLuntaiHuawenLlD.setVisibility(View.VISIBLE);
//                otherLuntaiHuawenLlE.setVisibility(View.VISIBLE);
//                otherLuntaiHuawenLlF.setVisibility(View.GONE);
//            } else if (turnAxis == 2) {
//                otherLuntaiHuawenLlA.setVisibility(View.GONE);
//                otherLuntaiHuawenLlB.setVisibility(View.GONE);
//                otherLuntaiHuawenLlC.setVisibility(View.VISIBLE);
//                otherLuntaiHuawenLlD.setVisibility(View.VISIBLE);
//                otherLuntaiHuawenLlE.setVisibility(View.VISIBLE);
//                otherLuntaiHuawenLlF.setVisibility(View.VISIBLE);
//            } else if (turnAxis == 3) {
//                otherLuntaiHuawenLlA.setVisibility(View.GONE);
//                otherLuntaiHuawenLlB.setVisibility(View.GONE);
//                otherLuntaiHuawenLlC.setVisibility(View.GONE);
//                otherLuntaiHuawenLlD.setVisibility(View.VISIBLE);
//                otherLuntaiHuawenLlE.setVisibility(View.VISIBLE);
//                otherLuntaiHuawenLlF.setVisibility(View.VISIBLE);
//            }
//        } else if (differenceValues == 5) {
//            if (turnAxis == 1) {
//                otherLuntaiHuawenLlA.setVisibility(View.GONE);
//                otherLuntaiHuawenLlB.setVisibility(View.VISIBLE);
//                otherLuntaiHuawenLlC.setVisibility(View.VISIBLE);
//                otherLuntaiHuawenLlD.setVisibility(View.VISIBLE);
//                otherLuntaiHuawenLlE.setVisibility(View.VISIBLE);
//                otherLuntaiHuawenLlF.setVisibility(View.VISIBLE);
//            }
//        }
//    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        OkGo.getInstance().cancelTag(this);
        String logStrf = "\n" + "onDestroy-----外检项目-----" + "\n";
        PDALogUtils.createLogFile(BaseApplication.JIANCE_MODE, logStrf.getBytes());
        instances = null;
    }

    @OnClick({R.id.ac_waijian_item_line, R.id.ac_waijian_item_shifou_quanshi,
            R.id.ac_waijian_item_dianzi_kongzhi, R.id.ac_waijian_item_kongqi_xuanjia,
            R.id.ac_waijian_item_details_video, R.id.ac_waijian_item_btn_other,
            R.id.ac_waijian_item_btn_start, R.id.ac_waijian_hege_lanban,
            R.id.ac_waijian_hege_luntai, R.id.ac_waijian_hege_cheshen})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.ac_waijian_item_line:
                //检测线号
                showMyDialog(line_str, R.id.ac_waijian_item_line);
                break;
            case R.id.ac_waijian_hege_lanban:
                //合格---栏板
                showMyDialog(Constants.HEGE_LISTS, R.id.ac_waijian_hege_lanban);
                break;
            case R.id.ac_waijian_hege_luntai:
                //合格--轮胎
                showMyDialog(Constants.HEGE_LISTS, R.id.ac_waijian_hege_luntai);
                break;
            case R.id.ac_waijian_hege_cheshen:
                //合格---车身
                showMyDialog(Constants.HEGE_LISTS, R.id.ac_waijian_hege_cheshen);
                break;
            case R.id.ac_waijian_item_shifou_quanshi:
                //是否全时/适时四驱  0-否，1-是
                showMyDialog(fou_shi_str, R.id.ac_waijian_item_shifou_quanshi);
                break;
            case R.id.ac_waijian_item_dianzi_kongzhi:
                //驻车制动是否使用电子控制装置  0-否，1-是
                showMyDialog(fou_shi_str, R.id.ac_waijian_item_dianzi_kongzhi);
                break;
            case R.id.ac_waijian_item_kongqi_xuanjia:
                //是否配备空气悬架  0-否，1-是
                showMyDialog(fou_shi_str, R.id.ac_waijian_item_kongqi_xuanjia);
                break;
            case R.id.ac_waijian_details_video:
                Intent intent_video_1 = new Intent(instances, VideoListActivity.class);
                intent_video_1.putExtra("CarDetailsActivity_CarsInforModel", carsInforModel);
                intent_video_1.putExtra("CarDetailsActivity_acCarDetailsWaijianchedao", Line);
                intent_video_1.putExtra("video_type", 1);
                intent_video_1.putExtra("CarDetailsActivity_Line", Line);
                startActivity(intent_video_1);
                break;
            case R.id.ac_waijian_item_btn_other:
                //back
                finish();
                break;
            case R.id.ac_waijian_item_btn_start:
                //项目开始
                String hege_luntai = acWaijianHegeLuntai.getText().toString().trim();
                String hege_cheshen = acWaijianHegeCheshen.getText().toString().trim();
                String shifou_quanshi = acWaijianItemShifouQuanshi.getText().toString().trim();
                String shifou_dianzikongzhi = acWaijianItemDianziKongzhi.getText().toString().trim();
                String kongqi_xuanjia = acWaijianItemKongqiXuanjia.getText().toString().trim();
                String kongqi_xuanjia_zhou = acWaijianItemKongqiXuanjiaZhou.getText().toString().trim();
                String waikuo_chang = acWaijianItemWaikuoChang.getText().toString().trim();
                String waikuo_kuan = acWaijianItemWaikuoKuan.getText().toString().trim();
                String waikuo_gao = acWaijianItemWaikuoGao.getText().toString().trim();
                String zhouju = acWaijianItemZhouju.getText().toString().trim();
                String zhuanxiangzhou_shuliang = acWaijianItemZhuanxiangZhouShuliang.getText().toString().trim();
                String chexiang_lanban_gaodu = acWaijianItemChexiangLanbanGaodu.getText().toString().trim();
//                String danche_zhuanxianglun_luntai_huawen_shendu = acWaijianItemDancheZhuanxianglunLuntaiHuawenShendu.getText().toString().trim();
//                String danche_qta_luntai_huawen_shendu = acWaijianItemDancheQitaLuntaiHuawenShendu.getText().toString().trim();
//                String guache_luntai_huanwen_shendu = acWaijianItemGuacheLuntaiHuawenShendu.getText().toString().trim();
                String diyizhou_zuogaodu = acWaijianItemDiyizhouZuogaodu.getText().toString().trim();
                String diyizhou_yougaodu = acWaijianItemDiyizhouYougaodu.getText().toString().trim();
                String diyizhou_zuoyou_gaodu = acWaijianItemDiyizhouZuoyouGaoducha.getText().toString().trim();
                String zuihouzhou_zuo_gaodu = acWaijianItemZuihouzhouZuoGaodu.getText().toString().trim();
                String zuihouzhou_you_gaodu = acWaijianItemZuihouzhouYouGaodu.getText().toString().trim();
                String zuihouzhou_zuoyou_gaodu = acWaijianItemZuihouzhouZuoyouGaoducha.getText().toString().trim();
                String desc = acWaijianItemDesc.getText().toString().trim();
                String gua_che_lanban_gaodu = acWaijianItemGuaChexiangLanbanGaodu.getText().toString().trim();
                String gua_che_zuo_gaodu = acWaijianItemGuaZuoGaoducha.getText().toString().trim();
                String gua_che_you_gaodu = acWaijianItemYouGaoducha.getText().toString().trim();
                String gua_che_gaodu_gaoducha = acWaijianItemGuaGaoduchaGaoducha.getText().toString().trim();


                HeightChecker heightChecker = new HeightChecker(carsInforModel);
                boolean lanban_result = heightChecker.get_hight_result(chexiang_lanban_gaodu, gua_che_lanban_gaodu);
                UtilsLog.e("栏板高度检验==="+lanban_result);
                if(lanban_result){
                    acWaijianHegeLanban.setText("合格");
                }else{
                    acWaijianHegeLanban.setText("不合格");
                }
                String hege_lanban = acWaijianHegeLanban.getText().toString().trim();
                UtilsLog.e("栏板高度检验==tv="+hege_lanban);


                String luntai_zhuanxiang_A_0 = "", luntai_zhuanxiang_A_0_1 = "",
                        luntai_zhuanxiang_A_0_2 = "", luntai_zhuanxiang_A_0_3 = "", luntai_zhuanxiang_A_0_4 = "";
                String luntai_zhuanxiang_A_1 = luntaiHuawenA1.getText().toString().trim();
                String luntai_zhuanxiang_A_2 = luntaiHuawenA2.getText().toString().trim();
                String luntai_zhuanxiang_A_3 = luntaiHuawenA3.getText().toString().trim();
                String luntai_zhuanxiang_A_4 = luntaiHuawenA4.getText().toString().trim();
                luntai_zhuanxiang_A_0_1 = !TextUtils.isEmpty(luntai_zhuanxiang_A_1) ? "A1:" + luntai_zhuanxiang_A_1 + "/" : "";
                luntai_zhuanxiang_A_0_2 = !TextUtils.isEmpty(luntai_zhuanxiang_A_2) ? "A2:" + luntai_zhuanxiang_A_2 + "/" : "";
                luntai_zhuanxiang_A_0_3 = !TextUtils.isEmpty(luntai_zhuanxiang_A_3) ? "A3:" + luntai_zhuanxiang_A_3 + "/" : "";
                luntai_zhuanxiang_A_0_4 = !TextUtils.isEmpty(luntai_zhuanxiang_A_4) ? "A4:" + luntai_zhuanxiang_A_4 + "/" : "";
                luntai_zhuanxiang_A_0 = luntai_zhuanxiang_A_0_1 + luntai_zhuanxiang_A_0_2 +
                        luntai_zhuanxiang_A_0_3 + luntai_zhuanxiang_A_0_4;

                String luntai_zhuanxiang_B_0 = "", luntai_zhuanxiang_B_0_1 = "",
                        luntai_zhuanxiang_B_0_2 = "", luntai_zhuanxiang_B_0_3 = "", luntai_zhuanxiang_B_0_4 = "";
                String luntai_zhuanxiang_B_1 = luntaiHuawenB1.getText().toString().trim();
                String luntai_zhuanxiang_B_2 = luntaiHuawenB2.getText().toString().trim();
                String luntai_zhuanxiang_B_3 = luntaiHuawenB3.getText().toString().trim();
                String luntai_zhuanxiang_B_4 = luntaiHuawenB4.getText().toString().trim();
                luntai_zhuanxiang_B_0_1 = !TextUtils.isEmpty(luntai_zhuanxiang_B_1) ? "B1:" + luntai_zhuanxiang_B_1 + "/" : "";
                luntai_zhuanxiang_B_0_2 = !TextUtils.isEmpty(luntai_zhuanxiang_B_2) ? "B2:" + luntai_zhuanxiang_B_2 + "/" : "";
                luntai_zhuanxiang_B_0_3 = !TextUtils.isEmpty(luntai_zhuanxiang_B_3) ? "B3:" + luntai_zhuanxiang_B_3 + "/" : "";
                luntai_zhuanxiang_B_0_4 = !TextUtils.isEmpty(luntai_zhuanxiang_B_4) ? "B4:" + luntai_zhuanxiang_B_4 + "/" : "";
                luntai_zhuanxiang_B_0 = luntai_zhuanxiang_B_0_1 + luntai_zhuanxiang_B_0_2 +
                        luntai_zhuanxiang_B_0_3 + luntai_zhuanxiang_B_0_4;

                String luntai_zhuanxiang_C_0 = "", luntai_zhuanxiang_C_0_1 = "",
                        luntai_zhuanxiang_C_0_2 = "", luntai_zhuanxiang_C_0_3 = "", luntai_zhuanxiang_C_0_4 = "";
                String luntai_zhuanxiang_C_1 = luntaiHuawenC1.getText().toString().trim();
                String luntai_zhuanxiang_C_2 = luntaiHuawenC2.getText().toString().trim();
                String luntai_zhuanxiang_C_3 = luntaiHuawenC3.getText().toString().trim();
                String luntai_zhuanxiang_C_4 = luntaiHuawenC4.getText().toString().trim();
                luntai_zhuanxiang_C_0_1 = !TextUtils.isEmpty(luntai_zhuanxiang_C_1) ? "C1:" + luntai_zhuanxiang_C_1 + "/" : "";
                luntai_zhuanxiang_C_0_2 = !TextUtils.isEmpty(luntai_zhuanxiang_C_2) ? "C2:" + luntai_zhuanxiang_C_2 + "/" : "";
                luntai_zhuanxiang_C_0_3 = !TextUtils.isEmpty(luntai_zhuanxiang_C_3) ? "C3:" + luntai_zhuanxiang_C_3 + "/" : "";
                luntai_zhuanxiang_C_0_4 = !TextUtils.isEmpty(luntai_zhuanxiang_C_4) ? "C4:" + luntai_zhuanxiang_C_4 + "/" : "";
                luntai_zhuanxiang_C_0 = luntai_zhuanxiang_C_0_1 + luntai_zhuanxiang_C_0_2 +
                        luntai_zhuanxiang_C_0_3 + luntai_zhuanxiang_C_0_4;

                String luntai_zhuanxiang_D_0 = "", luntai_zhuanxiang_D_0_1 = "",
                        luntai_zhuanxiang_D_0_2 = "", luntai_zhuanxiang_D_0_3 = "", luntai_zhuanxiang_D_0_4 = "";
                String luntai_zhuanxiang_D_1 = luntaiHuawenD1.getText().toString().trim();
                String luntai_zhuanxiang_D_2 = luntaiHuawenD2.getText().toString().trim();
                String luntai_zhuanxiang_D_3 = luntaiHuawenD3.getText().toString().trim();
                String luntai_zhuanxiang_D_4 = luntaiHuawenD4.getText().toString().trim();
                luntai_zhuanxiang_D_0_1 = !TextUtils.isEmpty(luntai_zhuanxiang_D_1) ? "D1:" + luntai_zhuanxiang_D_1 + "/" : "";
                luntai_zhuanxiang_D_0_2 = !TextUtils.isEmpty(luntai_zhuanxiang_D_2) ? "D2:" + luntai_zhuanxiang_D_2 + "/" : "";
                luntai_zhuanxiang_D_0_3 = !TextUtils.isEmpty(luntai_zhuanxiang_D_3) ? "D3:" + luntai_zhuanxiang_D_3 + "/" : "";
                luntai_zhuanxiang_D_0_4 = !TextUtils.isEmpty(luntai_zhuanxiang_D_4) ? "D4:" + luntai_zhuanxiang_D_4 + "/" : "";
                luntai_zhuanxiang_D_0 = luntai_zhuanxiang_D_0_1 + luntai_zhuanxiang_D_0_2 +
                        luntai_zhuanxiang_D_0_3 + luntai_zhuanxiang_D_0_4;

                String luntai_zhuanxiang_E_0 = "", luntai_zhuanxiang_E_0_1 = "",
                        luntai_zhuanxiang_E_0_2 = "", luntai_zhuanxiang_E_0_3 = "", luntai_zhuanxiang_E_0_4 = "";
                String luntai_zhuanxiang_E_1 = luntaiHuawenE1.getText().toString().trim();
                String luntai_zhuanxiang_E_2 = luntaiHuawenE2.getText().toString().trim();
                String luntai_zhuanxiang_E_3 = luntaiHuawenE3.getText().toString().trim();
                String luntai_zhuanxiang_E_4 = luntaiHuawenE4.getText().toString().trim();
                luntai_zhuanxiang_E_0_1 = !TextUtils.isEmpty(luntai_zhuanxiang_E_1) ? "E1:" + luntai_zhuanxiang_E_1 + "/" : "";
                luntai_zhuanxiang_E_0_2 = !TextUtils.isEmpty(luntai_zhuanxiang_E_2) ? "E2:" + luntai_zhuanxiang_E_2 + "/" : "";
                luntai_zhuanxiang_E_0_3 = !TextUtils.isEmpty(luntai_zhuanxiang_E_3) ? "E3:" + luntai_zhuanxiang_E_3 + "/" : "";
                luntai_zhuanxiang_E_0_4 = !TextUtils.isEmpty(luntai_zhuanxiang_E_4) ? "E4:" + luntai_zhuanxiang_E_4 + "/" : "";
                luntai_zhuanxiang_E_0 = luntai_zhuanxiang_E_0_1 + luntai_zhuanxiang_E_0_2 +
                        luntai_zhuanxiang_E_0_3 + luntai_zhuanxiang_E_0_4;

                String luntai_zhuanxiang_F_0 = "", luntai_zhuanxiang_F_0_1 = "",
                        luntai_zhuanxiang_F_0_2 = "", luntai_zhuanxiang_F_0_3 = "", luntai_zhuanxiang_F_0_4 = "";
                String luntai_zhuanxiang_F_1 = luntaiHuawenF1.getText().toString().trim();
                String luntai_zhuanxiang_F_2 = luntaiHuawenF2.getText().toString().trim();
                String luntai_zhuanxiang_F_3 = luntaiHuawenF3.getText().toString().trim();
                String luntai_zhuanxiang_F_4 = luntaiHuawenF4.getText().toString().trim();
                luntai_zhuanxiang_F_0_1 = !TextUtils.isEmpty(luntai_zhuanxiang_F_1) ? "F1:" + luntai_zhuanxiang_F_1 + "/" : "";
                luntai_zhuanxiang_F_0_2 = !TextUtils.isEmpty(luntai_zhuanxiang_F_2) ? "F2:" + luntai_zhuanxiang_F_2 + "/" : "";
                luntai_zhuanxiang_F_0_3 = !TextUtils.isEmpty(luntai_zhuanxiang_F_3) ? "F3:" + luntai_zhuanxiang_F_3 + "/" : "";
                luntai_zhuanxiang_F_0_4 = !TextUtils.isEmpty(luntai_zhuanxiang_F_4) ? "F4:" + luntai_zhuanxiang_F_4 + "/" : "";
                luntai_zhuanxiang_F_0 = luntai_zhuanxiang_F_0_1 + luntai_zhuanxiang_F_0_2 +
                        luntai_zhuanxiang_F_0_3 + luntai_zhuanxiang_F_0_4;

                UtilsLog.e(" luntai_zhuanxiang_A_0==" + luntai_zhuanxiang_A_0 + "===" +
                        " luntai_zhuanxiang_B_0==" + luntai_zhuanxiang_B_0 + "===" +
                        " luntai_zhuanxiang_C_0==" + luntai_zhuanxiang_C_0 + "===" +
                        " luntai_zhuanxiang_D_0==" + luntai_zhuanxiang_D_0 + "===" +
                        " luntai_zhuanxiang_E_0==" + luntai_zhuanxiang_E_0 + "===" +
                        " luntai_zhuanxiang_F_0==" + luntai_zhuanxiang_F_0);
                String luntai_qita_A_0 = "", luntai_qita_A_0_1 = "",
                        luntai_qita_A_0_2 = "", luntai_qita_A_0_3 = "", luntai_qita_A_0_4 = "";
                String luntai_qita_A_1 = otherLuntaiHuawenA1.getText().toString().trim();
                String luntai_qita_A_2 = otherLuntaiHuawenA2.getText().toString().trim();
                String luntai_qita_A_3 = otherLuntaiHuawenA3.getText().toString().trim();
                String luntai_qita_A_4 = otherLuntaiHuawenA4.getText().toString().trim();
                luntai_qita_A_0_1 = !TextUtils.isEmpty(luntai_qita_A_1) ? "A1:" + luntai_qita_A_1 + "/" : "";
                luntai_qita_A_0_2 = !TextUtils.isEmpty(luntai_qita_A_2) ? "A2:" + luntai_qita_A_2 + "/" : "";
                luntai_qita_A_0_3 = !TextUtils.isEmpty(luntai_qita_A_3) ? "A3:" + luntai_qita_A_3 + "/" : "";
                luntai_qita_A_0_4 = !TextUtils.isEmpty(luntai_qita_A_4) ? "A4:" + luntai_qita_A_4 + "/" : "";
                luntai_qita_A_0 = luntai_qita_A_0_1 + luntai_qita_A_0_2 +
                        luntai_qita_A_0_3 + luntai_qita_A_0_4;

                String luntai_qita_B_0 = "", luntai_qita_B_0_1 = "",
                        luntai_qita_B_0_2 = "", luntai_qita_B_0_3 = "", luntai_qita_B_0_4 = "";
                String luntai_qita_B_1 = otherLuntaiHuawenB1.getText().toString().trim();
                String luntai_qita_B_2 = otherLuntaiHuawenB2.getText().toString().trim();
                String luntai_qita_B_3 = otherLuntaiHuawenB3.getText().toString().trim();
                String luntai_qita_B_4 = otherLuntaiHuawenB4.getText().toString().trim();
                luntai_qita_B_0_1 = !TextUtils.isEmpty(luntai_qita_B_1) ? "B1:" + luntai_qita_B_1 + "/" : "";
                luntai_qita_B_0_2 = !TextUtils.isEmpty(luntai_qita_B_2) ? "B2:" + luntai_qita_B_2 + "/" : "";
                luntai_qita_B_0_3 = !TextUtils.isEmpty(luntai_qita_B_3) ? "B3:" + luntai_qita_B_3 + "/" : "";
                luntai_qita_B_0_4 = !TextUtils.isEmpty(luntai_qita_B_4) ? "B4:" + luntai_qita_B_4 + "/" : "";
                luntai_qita_B_0 = luntai_qita_B_0_1 + luntai_qita_B_0_2 +
                        luntai_qita_B_0_3 + luntai_qita_B_0_4;

                String luntai_qita_C_0 = "", luntai_qita_C_0_1 = "",
                        luntai_qita_C_0_2 = "", luntai_qita_C_0_3 = "", luntai_qita_C_0_4 = "";
                String luntai_qita_C_1 = otherLuntaiHuawenC1.getText().toString().trim();
                String luntai_qita_C_2 = otherLuntaiHuawenC2.getText().toString().trim();
                String luntai_qita_C_3 = otherLuntaiHuawenC3.getText().toString().trim();
                String luntai_qita_C_4 = otherLuntaiHuawenC4.getText().toString().trim();
                luntai_qita_C_0_1 = !TextUtils.isEmpty(luntai_qita_C_1) ? "C1:" + luntai_qita_C_1 + "/" : "";
                luntai_qita_C_0_2 = !TextUtils.isEmpty(luntai_qita_C_2) ? "C2:" + luntai_qita_C_2 + "/" : "";
                luntai_qita_C_0_3 = !TextUtils.isEmpty(luntai_qita_C_3) ? "C3:" + luntai_qita_C_3 + "/" : "";
                luntai_qita_C_0_4 = !TextUtils.isEmpty(luntai_qita_C_4) ? "C4:" + luntai_qita_C_4 + "/" : "";
                luntai_qita_C_0 = luntai_qita_C_0_1 + luntai_qita_C_0_2 +
                        luntai_qita_C_0_3 + luntai_qita_C_0_4;

                String luntai_qita_D_0 = "", luntai_qita_D_0_1 = "",
                        luntai_qita_D_0_2 = "", luntai_qita_D_0_3 = "", luntai_qita_D_0_4 = "";
                String luntai_qita_D_1 = otherLuntaiHuawenD1.getText().toString().trim();
                String luntai_qita_D_2 = otherLuntaiHuawenD2.getText().toString().trim();
                String luntai_qita_D_3 = otherLuntaiHuawenD3.getText().toString().trim();
                String luntai_qita_D_4 = otherLuntaiHuawenD4.getText().toString().trim();
                luntai_qita_D_0_1 = !TextUtils.isEmpty(luntai_qita_D_1) ? "D1:" + luntai_qita_D_1 + "/" : "";
                luntai_qita_D_0_2 = !TextUtils.isEmpty(luntai_qita_D_2) ? "D2:" + luntai_qita_D_2 + "/" : "";
                luntai_qita_D_0_3 = !TextUtils.isEmpty(luntai_qita_D_3) ? "D3:" + luntai_qita_D_3 + "/" : "";
                luntai_qita_D_0_4 = !TextUtils.isEmpty(luntai_qita_D_4) ? "D4:" + luntai_qita_D_4 + "/" : "";
                luntai_qita_D_0 = luntai_qita_D_0_1 + luntai_qita_D_0_2 +
                        luntai_qita_D_0_3 + luntai_qita_D_0_4;

                String luntai_qita_E_0 = "", luntai_qita_E_0_1 = "",
                        luntai_qita_E_0_2 = "", luntai_qita_E_0_3 = "", luntai_qita_E_0_4 = "";
                String luntai_qita_E_1 = otherLuntaiHuawenE1.getText().toString().trim();
                String luntai_qita_E_2 = otherLuntaiHuawenE2.getText().toString().trim();
                String luntai_qita_E_3 = otherLuntaiHuawenE3.getText().toString().trim();
                String luntai_qita_E_4 = otherLuntaiHuawenE4.getText().toString().trim();
                luntai_qita_E_0_1 = !TextUtils.isEmpty(luntai_qita_E_1) ? "E1:" + luntai_qita_E_1 + "/" : "";
                luntai_qita_E_0_2 = !TextUtils.isEmpty(luntai_qita_E_2) ? "E2:" + luntai_qita_E_2 + "/" : "";
                luntai_qita_E_0_3 = !TextUtils.isEmpty(luntai_qita_E_3) ? "E3:" + luntai_qita_E_3 + "/" : "";
                luntai_qita_E_0_4 = !TextUtils.isEmpty(luntai_qita_E_4) ? "E4:" + luntai_qita_E_4 + "/" : "";
                luntai_qita_E_0 = luntai_qita_E_0_1 + luntai_qita_E_0_2 +
                        luntai_qita_E_0_3 + luntai_qita_E_0_4;

                String luntai_qita_F_0 = "", luntai_qita_F_0_1 = "",
                        luntai_qita_F_0_2 = "", luntai_qita_F_0_3 = "", luntai_qita_F_0_4 = "";
                String luntai_qita_F_1 = otherLuntaiHuawenF1.getText().toString().trim();
                String luntai_qita_F_2 = otherLuntaiHuawenF2.getText().toString().trim();
                String luntai_qita_F_3 = otherLuntaiHuawenF3.getText().toString().trim();
                String luntai_qita_F_4 = otherLuntaiHuawenF4.getText().toString().trim();
                luntai_qita_F_0_1 = !TextUtils.isEmpty(luntai_qita_F_1) ? "F1:" + luntai_qita_F_1 + "/" : "";
                luntai_qita_F_0_2 = !TextUtils.isEmpty(luntai_qita_F_2) ? "F2:" + luntai_qita_F_2 + "/" : "";
                luntai_qita_F_0_3 = !TextUtils.isEmpty(luntai_qita_F_3) ? "F3:" + luntai_qita_F_3 + "/" : "";
                luntai_qita_F_0_4 = !TextUtils.isEmpty(luntai_qita_F_4) ? "F4:" + luntai_qita_F_4 + "/" : "";
                luntai_qita_F_0 = luntai_qita_F_0_1 + luntai_qita_F_0_2 +
                        luntai_qita_F_0_3 + luntai_qita_F_0_4;
                UtilsLog.e(" luntai_qita_A_0==" + luntai_qita_A_0 + "===" +
                        " luntai_qita_B_0==" + luntai_qita_B_0 + "===" +
                        " luntai_qita_C_0==" + luntai_qita_C_0 + "===" +
                        " luntai_qita_D_0==" + luntai_qita_D_0 + "===" +
                        " luntai_qita_E_0==" + luntai_qita_E_0 + "===" +
                        " luntai_qita_F_0==" + luntai_qita_F_0);


                String luntai_gua_A_0 = "", luntai_gua_A_0_1 = "",
                        luntai_gua_A_0_2 = "", luntai_gua_A_0_3 = "", luntai_gua_A_0_4 = "";
                String luntai_gua_A_1 = guaLuntaiHuawenA1.getText().toString().trim();
                String luntai_gua_A_2 = guaLuntaiHuawenA2.getText().toString().trim();
                String luntai_gua_A_3 = guaLuntaiHuawenA3.getText().toString().trim();
                String luntai_gua_A_4 = guaLuntaiHuawenA4.getText().toString().trim();
                luntai_gua_A_0_1 = !TextUtils.isEmpty(luntai_gua_A_1) ? "A1:" + luntai_gua_A_1 + "/" : "";
                luntai_gua_A_0_2 = !TextUtils.isEmpty(luntai_gua_A_2) ? "A2:" + luntai_gua_A_2 + "/" : "";
                luntai_gua_A_0_3 = !TextUtils.isEmpty(luntai_gua_A_3) ? "A3:" + luntai_gua_A_3 + "/" : "";
                luntai_gua_A_0_4 = !TextUtils.isEmpty(luntai_gua_A_4) ? "A4:" + luntai_gua_A_4 + "/" : "";
                luntai_gua_A_0 = luntai_gua_A_0_1 + luntai_gua_A_0_2 +
                        luntai_gua_A_0_3 + luntai_gua_A_0_4;

                String luntai_gua_B_0 = "", luntai_gua_B_0_1 = "",
                        luntai_gua_B_0_2 = "", luntai_gua_B_0_3 = "", luntai_gua_B_0_4 = "";
                String luntai_gua_B_1 = guaLuntaiHuawenB1.getText().toString().trim();
                String luntai_gua_B_2 = guaLuntaiHuawenB2.getText().toString().trim();
                String luntai_gua_B_3 = guaLuntaiHuawenB3.getText().toString().trim();
                String luntai_gua_B_4 = guaLuntaiHuawenB4.getText().toString().trim();
                luntai_gua_B_0_1 = !TextUtils.isEmpty(luntai_gua_B_1) ? "B1:" + luntai_gua_B_1 + "/" : "";
                luntai_gua_B_0_2 = !TextUtils.isEmpty(luntai_gua_B_2) ? "B2:" + luntai_gua_B_2 + "/" : "";
                luntai_gua_B_0_3 = !TextUtils.isEmpty(luntai_gua_B_3) ? "B3:" + luntai_gua_B_3 + "/" : "";
                luntai_gua_B_0_4 = !TextUtils.isEmpty(luntai_gua_B_4) ? "B4:" + luntai_gua_B_4 + "/" : "";
                luntai_gua_B_0 = luntai_gua_B_0_1 + luntai_gua_B_0_2 +
                        luntai_gua_B_0_3 + luntai_gua_B_0_4;

                String luntai_gua_C_0 = "", luntai_gua_C_0_1 = "",
                        luntai_gua_C_0_2 = "", luntai_gua_C_0_3 = "", luntai_gua_C_0_4 = "";
                String luntai_gua_C_1 = guaLuntaiHuawenC1.getText().toString().trim();
                String luntai_gua_C_2 = guaLuntaiHuawenC2.getText().toString().trim();
                String luntai_gua_C_3 = guaLuntaiHuawenC3.getText().toString().trim();
                String luntai_gua_C_4 = guaLuntaiHuawenC4.getText().toString().trim();
                luntai_gua_C_0_1 = !TextUtils.isEmpty(luntai_gua_C_1) ? "C1:" + luntai_gua_C_1 + "/" : "";
                luntai_gua_C_0_2 = !TextUtils.isEmpty(luntai_gua_C_2) ? "C2:" + luntai_gua_C_2 + "/" : "";
                luntai_gua_C_0_3 = !TextUtils.isEmpty(luntai_gua_C_3) ? "C3:" + luntai_gua_C_3 + "/" : "";
                luntai_gua_C_0_4 = !TextUtils.isEmpty(luntai_gua_C_4) ? "C4:" + luntai_gua_C_4 + "/" : "";
                luntai_gua_C_0 = luntai_gua_C_0_1 + luntai_gua_C_0_2 +
                        luntai_gua_C_0_3 + luntai_gua_C_0_4;

                String luntai_gua_D_0 = "", luntai_gua_D_0_1 = "",
                        luntai_gua_D_0_2 = "", luntai_gua_D_0_3 = "", luntai_gua_D_0_4 = "";
                String luntai_gua_D_1 = guaLuntaiHuawenD1.getText().toString().trim();
                String luntai_gua_D_2 = guaLuntaiHuawenD2.getText().toString().trim();
                String luntai_gua_D_3 = guaLuntaiHuawenD3.getText().toString().trim();
                String luntai_gua_D_4 = guaLuntaiHuawenD4.getText().toString().trim();
                luntai_gua_D_0_1 = !TextUtils.isEmpty(luntai_gua_D_1) ? "D1:" + luntai_gua_D_1 + "/" : "";
                luntai_gua_D_0_2 = !TextUtils.isEmpty(luntai_gua_D_2) ? "D2:" + luntai_gua_D_2 + "/" : "";
                luntai_gua_D_0_3 = !TextUtils.isEmpty(luntai_gua_D_3) ? "D3:" + luntai_gua_D_3 + "/" : "";
                luntai_gua_D_0_4 = !TextUtils.isEmpty(luntai_gua_D_4) ? "D4:" + luntai_gua_D_4 + "/" : "";
                luntai_gua_D_0 = luntai_gua_D_0_1 + luntai_gua_D_0_2 +
                        luntai_gua_D_0_3 + luntai_gua_D_0_4;

                String luntai_gua_E_0 = "", luntai_gua_E_0_1 = "",
                        luntai_gua_E_0_2 = "", luntai_gua_E_0_3 = "", luntai_gua_E_0_4 = "";
                String luntai_gua_E_1 = guaLuntaiHuawenE1.getText().toString().trim();
                String luntai_gua_E_2 = guaLuntaiHuawenE2.getText().toString().trim();
                String luntai_gua_E_3 = guaLuntaiHuawenE3.getText().toString().trim();
                String luntai_gua_E_4 = guaLuntaiHuawenE4.getText().toString().trim();
                luntai_gua_E_0_1 = !TextUtils.isEmpty(luntai_gua_E_1) ? "E1:" + luntai_gua_E_1 + "/" : "";
                luntai_gua_E_0_2 = !TextUtils.isEmpty(luntai_gua_E_2) ? "E2:" + luntai_gua_E_2 + "/" : "";
                luntai_gua_E_0_3 = !TextUtils.isEmpty(luntai_gua_E_3) ? "E3:" + luntai_gua_E_3 + "/" : "";
                luntai_gua_E_0_4 = !TextUtils.isEmpty(luntai_gua_E_4) ? "E4:" + luntai_gua_E_4 + "/" : "";
                luntai_gua_E_0 = luntai_gua_E_0_1 + luntai_gua_E_0_2 +
                        luntai_gua_E_0_3 + luntai_gua_E_0_4;

                String luntai_gua_F_0 = "", luntai_gua_F_0_1 = "",
                        luntai_gua_F_0_2 = "", luntai_gua_F_0_3 = "", luntai_gua_F_0_4 = "";
                String luntai_gua_F_1 = guaLuntaiHuawenF1.getText().toString().trim();
                String luntai_gua_F_2 = guaLuntaiHuawenF2.getText().toString().trim();
                String luntai_gua_F_3 = guaLuntaiHuawenF3.getText().toString().trim();
                String luntai_gua_F_4 = guaLuntaiHuawenF4.getText().toString().trim();
                luntai_gua_F_0_1 = !TextUtils.isEmpty(luntai_gua_F_1) ? "F1:" + luntai_gua_F_1 + "/" : "";
                luntai_gua_F_0_2 = !TextUtils.isEmpty(luntai_gua_F_2) ? "F2:" + luntai_gua_F_2 + "/" : "";
                luntai_gua_F_0_3 = !TextUtils.isEmpty(luntai_gua_F_3) ? "F3:" + luntai_gua_F_3 + "/" : "";
                luntai_gua_F_0_4 = !TextUtils.isEmpty(luntai_gua_F_4) ? "F4:" + luntai_gua_F_4 + "/" : "";
                luntai_gua_F_0 = luntai_gua_F_0_1 + luntai_gua_F_0_2 +
                        luntai_gua_F_0_3 + luntai_gua_F_0_4;
                UtilsLog.e(" luntai_gua_A_0==" + luntai_gua_A_0 + "===" +
                        " luntai_gua_B_0==" + luntai_gua_B_0 + "===" +
                        " luntai_gua_C_0==" + luntai_gua_C_0 + "===" +
                        " luntai_gua_D_0==" + luntai_gua_D_0 + "===" +
                        " luntai_gua_E_0==" + luntai_gua_E_0 + "===" +
                        " luntai_gua_F_0==" + luntai_gua_F_0);

                String danche_zhuanxianglun_luntai_huawen_shendu = luntai_zhuanxiang_A_0 + luntai_zhuanxiang_B_0 +
                        luntai_zhuanxiang_C_0 + luntai_zhuanxiang_D_0 +
                        luntai_zhuanxiang_E_0 + luntai_zhuanxiang_F_0;
                String danche_qta_luntai_huawen_shendu = luntai_qita_A_0 + luntai_qita_B_0 +
                        luntai_qita_C_0 + luntai_qita_D_0 + luntai_qita_E_0 + luntai_qita_F_0;
                String guache_luntai_huanwen_shendu = luntai_gua_A_0 + luntai_gua_B_0 +
                        luntai_gua_C_0 + luntai_gua_D_0 + luntai_gua_E_0 + luntai_gua_F_0;





                WaiJianItemModel model = new WaiJianItemModel();
                model.setHege_cheshen(hege_cheshen);
                model.setHege_lanban(hege_lanban);
                model.setHege_luntai(hege_luntai);
                model.setZhuanxiangzhou(zhuanxiangzhou_shuliang);
                model.setShifouQuanshi(shifou_quanshi.equals("") ? "" : shifou_quanshi);
                model.setShifouDianzikongzhi(shifou_dianzikongzhi.equals("") ? "" : shifou_dianzikongzhi);
                model.setKongqiXuanjia(kongqi_xuanjia.equals("") ? "" : kongqi_xuanjia);
                model.setKongqiXuanjiaZhou(kongqi_xuanjia_zhou.equals("") ? "" : kongqi_xuanjia_zhou);
                model.setWaikuoChang(waikuo_chang.equals("") ? "" : waikuo_chang);
                model.setWaikuoKuan(waikuo_kuan.equals("") ? "" : waikuo_kuan);
                model.setWaikuoGao(waikuo_gao.equals("") ? "" : waikuo_gao);
                model.setZhouju(zhouju.equals("") ? "" : zhouju);
                model.setChexiangLanbanGaodu(chexiang_lanban_gaodu.equals("") ? "" : chexiang_lanban_gaodu);
                model.setDancheZhuanxianglunLuntaiHuawenShendu(danche_zhuanxianglun_luntai_huawen_shendu.equals("") ? "" : danche_zhuanxianglun_luntai_huawen_shendu);
                model.setDancheQtaLuntaiHuawenShendu(danche_qta_luntai_huawen_shendu.equals("") ? "" : danche_qta_luntai_huawen_shendu);
                model.setGuacheLuntaiHuanwenShendu(guache_luntai_huanwen_shendu.equals("") ? "" : guache_luntai_huanwen_shendu);
                model.setDiyizhouZuogaodu(diyizhou_zuogaodu.equals("") ? "" : diyizhou_zuogaodu);
                model.setDiyizhouYougaodu(diyizhou_yougaodu.equals("") ? "" : diyizhou_yougaodu);
                model.setDiyizhouZuoyouGaodu(diyizhou_zuoyou_gaodu.equals("") ? "" : diyizhou_zuoyou_gaodu);
                model.setZuihouzhouZuoGaodu(zuihouzhou_zuo_gaodu.equals("") ? "" : zuihouzhou_zuo_gaodu);
                model.setZuihouzhouYouGaodu(zuihouzhou_you_gaodu.equals("") ? "" : zuihouzhou_you_gaodu);
                model.setZuihouzhouZuoyouGaodu(zuihouzhou_zuoyou_gaodu.equals("") ? "" : zuihouzhou_zuoyou_gaodu);
                model.setDesc(desc.equals("") ? "" : desc);
                model.setF1ResultNote(desc.equals("") ? "" : desc);
                model.setGuaCheLanbanGaodu(gua_che_lanban_gaodu.equals("") ? "" : gua_che_lanban_gaodu);
                model.setGuaCheZuoGaodu(gua_che_zuo_gaodu.equals("") ? "" : gua_che_zuo_gaodu);
                model.setGuaCheYouGaodu(gua_che_you_gaodu.equals("") ? "" : gua_che_you_gaodu);
                model.setGuaCheGaoduGaoducha(gua_che_gaodu_gaoducha.equals("") ? "" : gua_che_gaodu_gaoducha);
                model.save();
                String logStr = "\n" + "外检项目--车辆特征参数--录入--本地数据库保存---" + "\n" +
                        "model::" + model.toString() + "\n";
                PDALogUtils.createLogFile(BaseApplication.JIANCE_MODE, logStr.getBytes());
                UtilsLog.e("外检项目--车辆特征参数--录入--本地数据库保存---" + model.toString());
                finish();
//                }
//                initJsonDataToPlateform();
                break;
        }
    }

    private String[] line_str = new String[]{"01", "02", "03", "04", "05", "06"};
    private String[] fou_shi_str = new String[]{"否", "是"};

    private void showMyDialog(String[] str, final int id) {
//        BottomMenu bottomMenu= BottomMenu().build(this);
        BottomMenu.show(this, str, new OnMenuItemClickListener() {
            @Override
            public void onClick(String text, int index) {
                //返回参数 text 即菜单名称，index 即菜单索引
                UtilsLog.e("外检---showMyDialog==" + text + "===" + index);
                switch (id) {
                    case R.id.ac_waijian_item_line:
                        // 线号
                        acWaijianItemLine.setText(text);
                        break;
                    case R.id.ac_waijian_item_shifou_quanshi:
                        acWaijianItemShifouQuanshi.setText(text);
                        break;
                    case R.id.ac_waijian_item_dianzi_kongzhi:
                        acWaijianItemDianziKongzhi.setText(text);
                        break;
                    case R.id.ac_waijian_item_kongqi_xuanjia:
                        acWaijianItemKongqiXuanjia.setText(text);
                        break;
                    case R.id.ac_waijian_hege_lanban:
                        //合格---栏板
                        acWaijianHegeLanban.setText(text);
                        break;
                    case R.id.ac_waijian_hege_luntai:
                        //合格--轮胎
                        acWaijianHegeLuntai.setText(text);
                        break;
                    case R.id.ac_waijian_hege_cheshen:
                        //合格---车身
                        acWaijianHegeCheshen.setText(text);
                        break;
                }
            }
        }).setMenuTextInfo(new TextInfo().setBold(true).setFontColor(Color.BLACK).setGravity(Gravity.CENTER));
    }

    //上传本地后台
    private void uploadData(WaiJainDataModel waiJainDataModel) {
        Gson gson = new Gson();
        String jsonStr = gson.toJson(waiJainDataModel);
        UtilsLog.e("外检项目--上传本地后台数据---jsonStr==" + jsonStr);
        UtilsLog.e("外检项目--上传本地后台数据---url==" + SharedPreferencesUtils.getIP(this) + REPORTED_DATA);
        String logStr = "\n" + "外检项目--上传本地后台数据---json" + "\n" +
                "json::" + jsonStr + "\n" +
                "URL::" + SharedPreferencesUtils.getIP(instances) + REPORTED_DATA;
        PDALogUtils.createLogFile(BaseApplication.JIANCE_MODE, logStr.getBytes());
        OkGo.<String>post(SharedPreferencesUtils.getIP(this) + REPORTED_DATA).tag(this)
                .upJson(jsonStr)
                .execute(new StringCallback() {
                    @Override
                    public void onStart(Request<String, ? extends Request> request) {
                        super.onStart(request);
//                        CommonUtils.showLoadingDialog(instances, "加载中...");
                    }

                    @Override
                    public void onSuccess(Response<String> response) {
                        String result = response.body();
                        UtilsLog.e("外检项目--上传本地后台数据--result==" + result);
                        String newResult = result.substring(1, result.length() - 1).replaceAll("\\\\", "");
                        UtilsLog.e("外检项目--上传本地后台数据--newResult==" + newResult);
                        String logStr = "\n" + "外检项目--上传本地后台数据---请求成功" +
                                "\n" + "result::" + result;
                        PDALogUtils.createLogFile(BaseApplication.JIANCE_MODE, logStr.getBytes());
                        if ("ok".equalsIgnoreCase(newResult)) {
//                            Handler handler = new Handler();
//                            handler.postDelayed(new Runnable() {
//                                @Override
//                                public void run() {
//                                    updateCarStatusInfor();
//                                }
//                            }, 800);//后执行Runnable中的run方法
                        } else {
                            MessageDialog.show(instances, "提示", "上传本地后台数据失败，请重试", "确定");
                        }
                    }

                    @Override
                    public void onError(Response<String> response) {
                        super.onError(response);
                        UtilsLog.e("外检项目--上传后台数据-onError==" + response.body());
                        String logStr = "\n" + "外检项目--上传本地后台数据--onError-失败" +
                                "\n" + "URL::" + SharedPreferencesUtils.getIP(instances) +
                                REPORTED_DATA + "\n" + "result::" + response.body();
                        PDALogUtils.createLogFile(BaseApplication.JIANCE_MODE, logStr.getBytes());
                        CommonUtils.hideLoadingDialog(instances);
                        MessageDialog.show(instances, "提示", "上传本地后台数据网络异常，请重试", "确定");
                    }
                });
    }


    void initJsonDataToPlateform() {
        waiJainDataModel.setDetection_ID(String.valueOf(carsInforModel.getID()));
        waiJainDataModel.setGUID(carsInforModel.getGUID());
        waiJainDataModel.setDetectionDevID(CommonUtils.getIMEI(this));
        waiJainDataModel.setBrakeForce(carsInforModel.getBrakeForce());
        waiJainDataModel.setPlateNO(carsInforModel.getPlateRegion() + carsInforModel.getPlateNO());
        waiJainDataModel.setAirAdmission(carsInforModel.getAirAdmission());
        try {
            String name = URLDecoder.decode(Login_name, "UTF-8");
            waiJainDataModel.setAppearanceInspector(name);//检测员名字，汉字
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        waiJainDataModel.setAppearanceNo(login_IDNumber);
        waiJainDataModel.setApprovedLoad(carsInforModel.getApprovedLoad());
        waiJainDataModel.setArea(carsInforModel.getArea());
        waiJainDataModel.setBodyColor(carsInforModel.getBodyColor());
        waiJainDataModel.setBrand(carsInforModel.getBrand());
        waiJainDataModel.setCarBodyType(carsInforModel.getCarBodyType());
        waiJainDataModel.setCarID(carsInforModel.getCarID());
        waiJainDataModel.setCarModel(carsInforModel.getCarModel());
        waiJainDataModel.setCarTypeLevel(carsInforModel.getCarTypeLevel());
        waiJainDataModel.setCategory(carsInforModel.getCategory());
        waiJainDataModel.setCentralAxle(carsInforModel.getCentralAxle());
        waiJainDataModel.setCode(carsInforModel.getCode());
        waiJainDataModel.setCombCarNO(carsInforModel.getCombCarNO());
        waiJainDataModel.setCurbWeight(carsInforModel.getCurbWeight());
        waiJainDataModel.setDetectDate(carsInforModel.getDetectDate());
        waiJainDataModel.setDetectionCategory(carsInforModel.getDetectionCategory());
        waiJainDataModel.setDetectionStatus(carsInforModel.getDetectionStatus());
        waiJainDataModel.setDisplacement(carsInforModel.getDisplacement());
        waiJainDataModel.setDriveAxle(carsInforModel.getDriveAxle());
        waiJainDataModel.setDriverAxleWeight(carsInforModel.getDriverAxleWeight());
        waiJainDataModel.setDriverTypeName(carsInforModel.getDriverTypeName());
        waiJainDataModel.setDriverType(carsInforModel.getDriverType());
        waiJainDataModel.setPlateType(carsInforModel.getPlateType());
        waiJainDataModel.setItemcode(Item_Code);
        waiJainDataModel.setLine(Line);
        waiJainDataModel.setMainAxis(carsInforModel.getMainAxis());
        waiJainDataModel.setParkingAxle(carsInforModel.getParkingAxle());
        waiJainDataModel.setEngineNO(carsInforModel.getEngineNO());
        waiJainDataModel.setFuelType(carsInforModel.getFuelType());
        waiJainDataModel.setPlateTypeName(carsInforModel.getPlateTypeName());
        waiJainDataModel.setPlatformSN(carsInforModel.getPlatformSN());
        waiJainDataModel.setQueueID(carsInforModel.getQueueID());
        waiJainDataModel.setSN(carsInforModel.getSN());
        waiJainDataModel.setStatus(carsInforModel.getStatus());
        waiJainDataModel.setTest_times(carsInforModel.getTimes());
        waiJainDataModel.setTimes(carsInforModel.getTimes());
        waiJainDataModel.setType(carsInforModel.getType());
        waiJainDataModel.setVIN(carsInforModel.getVIN());
        waiJainDataModel.setDataType(Item_Code);
        waiJainDataModel.setOwner(carsInforModel.getOwner());
        waiJainDataModel.setTelephone(carsInforModel.getTelephone());
        waiJainDataModel.setAddress(carsInforModel.getAddress());
        uploadData(waiJainDataModel);
    }
}
